-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isspace.c
20 lines (18 loc) · 1008 Bytes
/
ft_isspace.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sde-silv <sde-silv@student.42berlin.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/25 13:36:43 by sde-silv #+# #+# */
/* Updated: 2023/10/25 13:37:21 by sde-silv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isspace(int c)
{
if (c == ' ' || (c >= '\t' && c <= '\r'))
return (1);
return (0);
}