-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.c
31 lines (28 loc) · 1.18 KB
/
init.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
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* init.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ihermell <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/23 04:32:15 by ihermell #+# #+# */
/* Updated: 2014/12/03 11:51:36 by ihermell ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_ls.h"
int initialize(t_data *arg_lst)
{
t_data *errors;
t_data *files;
t_data *dirs;
errors = NULL;
files = NULL;
dirs = NULL;
lst_filter(arg_lst, &errors, &files, &dirs);
e_args_error(errors);
print_data_lst(files);
print_dirs(dirs);
lst_free(errors);
lst_free(files);
return (0);
}