-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
30 lines (28 loc) · 1.11 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: ochurko <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/13 12:30:25 by ochurko #+# #+# */
/* Updated: 2023/11/20 09:12:51 by ochurko ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
return (0);
}
/*
int main()
{
char str[] = "^";
printf ("%d \n", isascii(str[0]));
printf ("%d \n", str[0]);
printf ("%d", ft_isascii(str[0]));
return (0);
}
*/