-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
37 lines (33 loc) · 1.17 KB
/
ft_isascii.c
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
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfilloux <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/02 12:36:11 by lfilloux #+# #+# */
/* Updated: 2021/11/02 14:17:18 by lfilloux ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
return (0);
}
/*
int main(void)
{
int c;
c = ;
if (ft_isascii(c) == isascii(c))
{
printf("%d || ", isascii(c));
printf("\033[1;32m%s\n", "TRUE");
}
else
printf("\033[1;31m%s\n", "FALSE");
return (0);
}
*/