-
Notifications
You must be signed in to change notification settings - Fork 0
/
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: plisieck <plisieck@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/12/25 21:22:36 by plisieck #+# #+# */
/* Updated: 2015/01/21 19:13:44 by plisieck ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_isspace(int c)
{
if (c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r'
|| c == ' ')
return (1);
return (0);
}