-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.c
20 lines (20 loc) · 1.08 KB
/
ft_isprint.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jamendoe <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/02 18:37:24 by jamendoe #+# #+# */
/* Updated: 2022/11/02 18:37:26 by jamendoe ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isprint(int c)
{
return (c >= 32 && c < 127);
}
/*
ft_isprint checks for any printable character including space.
The values returned are nonzero if the character c falls into the
tested class, and zero if not
*/