-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_iswhitespace.c
21 lines (20 loc) · 1.02 KB
/
ft_iswhitespace.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_iswhitespace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vbrazas <vbrazas@student.unit.ua> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/30 18:22:10 by vbrazas #+# #+# */
/* Updated: 2018/06/05 19:41:33 by vbrazas ### ########.fr */
/* */
/* ************************************************************************** */
int ft_iswhitespace(int c)
{
if (c == '\t' || c == '\n' || c == '\v' || \
c == '\f' || c == '\r' || c == ' ')
{
return (1);
}
return (0);
}