-
Notifications
You must be signed in to change notification settings - Fork 12
/
ft_iscntrl.c
26 lines (24 loc) · 1.1 KB
/
ft_iscntrl.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_iscntrl.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/26 14:42:00 by apuchill #+# #+# */
/* Updated: 2020/10/30 19:55:30 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: <ctype.h>
** SYNOPSIS: control character test
**
** DESCRIPTION:
** The iscntrl() function tests for any control character.
*/
int ft_iscntrl(int c)
{
if ((c >= 0 && c <= 31) || c == 127)
return (1);
return (0);
}