mirror of
https://github.com/Ladebeze66/Piscine42.git
synced 2026-11-09 13:17:16 +01:00
Piscine42
This commit is contained in:
25
C08/ex01/ft_boolean.h
Executable file
25
C08/ex01/ft_boolean.h
Executable file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_boolean.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/12/15 14:30:45 by fgras-ca #+# #+# */
|
||||
/* Updated: 2022/12/18 12:24:26 by fgras-ca ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef FT_BOOLEAN_H
|
||||
# define FT_BOOLEAN_H
|
||||
# include <unistd.h>
|
||||
# define EVEN(n) n % 2 == 0
|
||||
|
||||
typedef int t_bool;
|
||||
|
||||
# define FALSE 0
|
||||
# define TRUE 1
|
||||
# define EVEN_MSG "I have an even number of arguments.\n"
|
||||
# define ODD_MSG "I have an odd number of arguments.\n"
|
||||
# define SUCCESS 0
|
||||
#endif
|
||||
Reference in New Issue
Block a user