-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
34 lines (30 loc) · 1.12 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sabraham <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/29 23:42:41 by sabraham #+# #+# */
/* Updated: 2023/07/31 21:25:55 by sabraham ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int s)
{
if (s >= 0 && s <= 127)
{
return (1);
}
else
{
return (0);
}
}
// int main (void)
// {
// char a='a';
// char b='4';
// printf("%d\n", ft_isascii(a));
// printf("%d\n", ft_isascii(b));
// }