-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isspace.c
23 lines (21 loc) · 1.07 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbetz <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/07 13:42:52 by rbetz #+# #+# */
/* Updated: 2023/04/07 13:43:06 by rbetz ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*identify any kind of space*/
int ft_isspace(int c)
{
if (c == ' ' || c == '\t' || c == '\r' )
return (1);
if (c == '\n' || c == '\v' || c == '\f')
return (1);
return (0);
}