-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isascii.c
26 lines (23 loc) · 1.11 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kmoutaou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/04 13:35:40 by kmoutaou #+# #+# */
/* Updated: 2021/11/18 23:48:57 by kmoutaou ### ########.fr */
/* */
/* ************************************************************************** */
/*
ft_isascii is a re-coded -isascii- function from <ctype.h>
that checks whether a character is an unsigned char of 7 bits or not.
*/
#include "libft.h"
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
else
return (0);
}