-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
30 lines (26 loc) · 1.07 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: geonwkim <geonwkim@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/18 21:25:30 by geonwkim #+# #+# */
/* Updated: 2024/04/18 22:14:48 by geonwkim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
else
return (0);
}
// int main()
// {
// int i;
// i = ft_isascii(0);
// printf("%d\n", i);
// return (0);
// }