-
Notifications
You must be signed in to change notification settings - Fork 0
/
first_check.c
29 lines (26 loc) · 1.09 KB
/
first_check.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* first_check.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: frcugy <frcugy@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/12/05 19:57:45 by frcugy #+# #+# */
/* Updated: 2015/01/02 11:30:50 by frcugy ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_ls.h"
void ft_first_check(char **tab)
{
int i;
i = 0;
while (tab[i])
{
if (tab[i][0] == '\0')
{
ft_putstr_fd ("ft_ls: fts_open: No such file or directory\n", 2);
exit (EXIT_FAILURE);
}
i++;
}
}