-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isspace.c
20 lines (18 loc) · 1.03 KB
/
ft_isspace.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ylagtab <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/01 23:55:19 by ylagtab #+# #+# */
/* Updated: 2020/02/27 22:15:12 by ylagtab ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isspace(int c)
{
unsigned char ch;
ch = (unsigned char)c;
return (ch == '\t' || ch == '\v' || ch == '\f' ||
ch == '\n' || ch == '\r' || ch == ' ');
}