-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isascii.c
35 lines (30 loc) · 1.19 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
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: snocita <snocita@student.42wolfsburg.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/12 19:09:57 by snocita #+# #+# */
/* Updated: 2022/12/16 14:32:24 by snocita ### ########.fr */
/* */
/* ************************************************************************** */
// #include <stdio.h>
// #include <ctype.h>
#include "libft.h"
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
return (0);
}
// int main()
// {
// int result;
// int result1;
// result = ft_isascii('F');
// result1 = isascii('F');
// printf("%d", result);
// printf("%d", result1);
// return (0);
// }