t_data get_input(int argc, char **argv) { t_data data; int i; data = init_data(data); i = 1; data = check_bonus(argv, data, i); i = i + data.operation_nbr + data.print_piles + data.color + data.final_result + data.list_options; data.a = (int*)malloc(sizeof(int) * argc - i); data.b = (int*)malloc(sizeof(int) * argc - i); data.elem_nbr = argc - i; data.a_elem_nbr = data.elem_nbr; data = get_piles(argv, i, data); if (data.elem_nbr > 3) data = solve_1(data); else data = solve_2(data); ft_printf("%c", 8); return (data); }
int main() { // solve_1(); solve_2(); }