-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isspace.c
executable file
·23 lines (21 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: spariaud <spariaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/12/28 22:11:50 by spariaud #+# #+# */
/* Updated: 2014/12/28 22:16:09 by spariaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(int c)
{
if (c == '\t' || c == '\n' || c == '\v')
return (1);
else if (c == '\f' || c == '\r' || c == ' ')
return (1);
else
return (0);
}