-
Notifications
You must be signed in to change notification settings - Fork 1
/
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: oadhesiv <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/25 14:07:22 by oadhesiv #+# #+# */
/* Updated: 2019/04/25 15:46:15 by oadhesiv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(int c)
{
if (c == ' ' || c == '\n' || c == '\t'
|| c == '\r' || c == '\v' || c == '\f')
return (1);
return (0);
}