void do_stuff(DIR *d, struct s_dir **n, struct s_op *a, char *here) { takedirs(d, n, *a, here); if (a->l || a->o || a->n) long_display(*n, here, *a); if (a->r) reverse(n); no_op_display(*n, a); }
int main(int ac, char **av) { t_args *args; int ret; t_item *items; args = NULL; ret = 0; items = NULL; args = ft_get_args(ac, av); items = get_start(args->items); if (args->options->R == 0) args->options->l ? long_display(items, args) : short_display(items, args); ret = args->ret; clean_program(&args); return (ret); }