-
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: rymuller <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/30 21:58:39 by rymuller #+# #+# */
/* Updated: 2018/11/30 22:08:12 by rymuller ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(char c)
{
if (c == ' ' || c == '\t' || c == '\v'
|| c == '\f' || c == '\n' || c == '\r')
return (1);
else
return (0);
}