-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.c
21 lines (19 loc) · 995 Bytes
/
ft_isprint.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abaudot <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/01/05 15:13:39 by abaudot #+# #+# */
/* Updated: 2021/01/06 18:37:01 by abaudot ### ########.fr */
/* */
/* ************************************************************************** */
/*
** 0x20 == 32
** 0x5f = 95 = '_'
*/
int ft_isprint(int c)
{
return ((unsigned)c - 0x20 < 0x5f);
}