-
Notifications
You must be signed in to change notification settings - Fork 0
/
v_empty.c
25 lines (22 loc) · 1.01 KB
/
v_empty.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* v_empty.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jkassand <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/27 01:30:43 by jkassand #+# #+# */
/* Updated: 2021/11/27 01:30:46 by jkassand ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int empty_str(char *str)
{
int i;
i = 0;
while (str[i] == ' ')
i++;
if (!str[i])
return (1);
return (0);
}