-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isprint.c
29 lines (27 loc) · 1.12 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
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: damartin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/01 18:53:40 by damartin #+# #+# */
/* Updated: 2022/02/10 15:54:34 by damartin ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int c)
{
if (c > 31 && c < 127)
return (1);
else
return (0);
}
//int main(void)
//{
// if(ft_isprint(70) == 1)
// printf("It is printable");
// else
// printf("Not printable");
// return 0;
//}