-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isgraph.c
26 lines (24 loc) · 1.16 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: pix <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/22 13:17:11 by stales #+# #+# */
/* Updated: 2022/04/04 02:55:03 by pix ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief Checks if c is any printable character except space.
*
* @param c Character value to check
*
* @return (int) Nonzero if character is any printable character except space
* zero if not
*/
int ft_isgraph(int c)
{
return (c > ' ' && c < 0x7F);
}