-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.c
26 lines (23 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
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dolvin17 <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/21 16:51:09 by ghuertas #+# #+# */
/* Updated: 2022/04/19 18:40:01 by dolvin17 ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* testea en busca de chars imprimibles (incluido el espacio */
int ft_isprint(int c)
{
return (c >= 32 && c <= 126);
}
/*
int main(void)
{
printf("%d\n", ft_isprint(127));
printf("%d\n", ft_isprint(126));
}*/