-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
30 lines (29 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
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rgerdzhi <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/25 12:58:15 by rgerdzhi #+# #+# */
/* Updated: 2024/07/08 17:47:50 by rgerdzhi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int c)
{
if (c > -1 && c < 128)
return (1);
else
return (0);
}
/*
int main(int argc, char *argv[])
{
char c;
c = argv[1][0];
printf("my function: %d\n", ft_isascii(c));
printf("isascii: %d\n", isascii(c));
return (0);
}
*/