-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isblank.c
29 lines (26 loc) · 1.09 KB
/
ft_isblank.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
26
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isblank.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ngouy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/03/12 10:47:41 by ngouy #+# #+# */
/* Updated: 2015/11/04 16:05:48 by ngouy ### ########.fr */
/* */
/* ************************************************************************** */
/*
** return 1 if c is a blank str, 0 either;
** NULL considered as blank
*/
#include "libft.h"
int ft_isblank(char *str)
{
while (str && *str)
{
if (!ft_isspace(*str))
return (0);
str++;
}
return (1);
}