-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
32 lines (30 loc) · 1.13 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sde-silv <sde-silv@student.42berlin.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/02 16:38:23 by sde-silv #+# #+# */
/* Updated: 2023/06/12 15:00:14 by sde-silv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
#include<ctype.h>
#include<stdio.h>
*/
int ft_isascii(int c)
{
if (0 <= c && c <= 127)
return (1);
return (0);
}
/*
int main(void)
{
printf ("isascii: %d", isascii(161));
printf ("\nft_isascii: %d \n", ft_isascii(161));
return (0);
}
*/