-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_isprint.c
25 lines (22 loc) · 1.02 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jony <jony@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/22 14:26:17 by mhasan #+# #+# */
/* Updated: 2019/11/04 22:10:07 by jony ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int c)
{
return (c >= 32 && c <= 126);
}
int main(void)
{
char c = '+';
printf("%d", ft_isprint(c));
return (0);
}