-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isspace.c
21 lines (19 loc) · 1.02 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rlechapt <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/04/02 17:33:57 by rlechapt #+# #+# */
/* Updated: 2015/04/02 17:37:57 by rlechapt ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(char c)
{
if (c == ' ' || c == '\n' || c == '\t' || c == '\f' || c == '\r'
|| c == '\v')
return (1);
return (0);
}