blob: 43a3c4fbe7899b918703b01b4fd1ca353ab724b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_boolean.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/07 16:35:29 by cacharle #+# #+# */
/* Updated: 2019/07/07 17:07:47 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_BOOLEAN_H
#define FT_BOOLEAN_H
#include <unistd.h>
#define TRUE 1
#define FALSE 1
#define SUCCESS 0
#define EVEN_MSG "I have an even number of arguments.\n"
#define ODD_MSG "I have an odd number of arguments.\n"
#define EVEN(x) (x % 2 == 0 ? 1 : 0)
typedef enum {
FALSE,
TRUE
} t_bool;
void ft_putstr(char *str);
t_bool ft_is_even(int nbr);
#endif
|