-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isascii.c
More file actions
31 lines (28 loc) · 1.1 KB
/
ft_isascii.c
File metadata and controls
31 lines (28 loc) · 1.1 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: simarcha <simarcha@student.42barcel> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/09 13:25:14 by simarcha #+# #+# */
/* Updated: 2024/01/14 11:28:53 by simarcha ### ########.fr */
/* */
/* ************************************************************************** */
//#include <ctype.h>
//#include <stdio.h>
int ft_isascii(int c)
{
if (c < 128 && c >= 0)
return (1);
return (0);
}
/*
int main(void)
{
int c;
c = -3;
printf("%d\n", isascii(c));
printf("%d\n", ft_isascii(c));
return (0);
}*/