-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_isspace.c
21 lines (19 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
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: smonroe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/20 21:22:07 by smonroe #+# #+# */
/* Updated: 2018/04/20 21:24:13 by smonroe ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(const char c)
{
if (c == '\t' || c == '\v' || c == '\r' ||
c == '\f' || c == '\n' || c == ' ')
return (1);
return (0);
}