-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.c
24 lines (22 loc) · 1.1 KB
/
ft_isprint.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bnidia <bnidia@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 08:48:47 by bnidia #+# #+# */
/* Updated: 2021/10/25 19:23:00 by bnidia ### ########.fr */
/* */
/* ************************************************************************** */
/* ft_isprint
** Checks for any printable character including space
** Return Value
** 0 if the character tests false and 1 if the character tests true
*/
int ft_isprint(int c)
{
if (c >= ' ' && c <= '~')
return (1);
return (0);
}