-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
29 lines (27 loc) · 1.13 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: damartin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/01 18:45:50 by damartin #+# #+# */
/* Updated: 2022/02/10 15:52:47 by damartin ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
else
return (0);
}
// int main(void)
// {
// if(ft_isascii(130) == 1)
// printf("It is an ascii");
// else
// printf("Not an ascii");
// return 0;
// }