-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isspace.c
22 lines (20 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
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ccline <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/06 10:59:24 by ccline #+# #+# */
/* Updated: 2019/10/06 11:01:01 by ccline ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(int c)
{
if (c == ' ' || c == '\t' || c == '\v' || c == '\f' || c == '\r' ||
c == '\n')
return (1);
else
return (0);
}