-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isspace.c
23 lines (20 loc) · 1.05 KB
/
ft_isspace.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ngouy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/03/12 10:47:41 by ngouy #+# #+# */
/* Updated: 2015/11/04 16:06:14 by ngouy ### ########.fr */
/* */
/* ************************************************************************** */
/*
** return 1 if c is a blank char, 0 either
*/
#include "libft.h"
int ft_isspace(int c)
{
return (c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' ||
c == '\r');
}