-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isgraph.c
26 lines (23 loc) · 1.09 KB
/
ft_isgraph.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_isgraph.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dalves-p <dalves-p@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/06/28 10:54:19 by dalves-p #+# #+# */
/* Updated: 2021/06/28 10:57:07 by dalves-p ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** LIBRARY: <ctype.h>
** DESCRIPTION:
** The isgraph() function checks for any printable character except space.
*/
int ft_isgraph(int c)
{
if (c > 32 && c <= 126)
return (1);
return (0);
}