-
Notifications
You must be signed in to change notification settings - Fork 0
/
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: marcrodr < marcrodr@student.42sp.org.br +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/10 16:55:25 by marcrodr #+# #+# */
/* Updated: 2022/02/14 10:07:41 by marcrodr ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(char c)
{
if (c == ' ' || c == '\n' || c == '\r' || c == '\t'
|| c == '\v' || c == '\f')
return (1);
return (0);
}