-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_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: agimi <agimi@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/03 13:17:45 by agimi #+# #+# */
/* Updated: 2022/10/05 17:00:19 by agimi ### ########.fr */
/* */
/* ************************************************************************** */
#include "unistd.h"
int ft_isspace(size_t c)
{
if ((c == ' ' || c == '\t' || c == '\v'
|| c == '\n' || c == '\f' || c == '\r'))
return (1);
return (0);
}