-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isspace.c
25 lines (22 loc) · 1.19 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
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lsauvage <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/14 10:34:21 by lsauvage #+# #+# */
/* Updated: 2018/01/04 15:39:07 by lsauvage ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Return 1 if c is a spacing character, space, tabulation, vertical tab,
** newline, carriage return, form-feed.
** DESCRIPTION : Verifie si un caractere est un caractere d'espacement.
*/
int ft_isspace(int c)
{
return (c == ' ' || c == '\t' || c == '\v'
|| c == '\n' || c == '\r' || c == '\f');
}