int main(int argc, char **argv) { t_map *s; t_move *move; if (argc == 1) { my_putstr("no argument\n"); my_putstr("Usage : ./bsq [file]\n"); return (1); } if (argc > 2) { my_putstr("to much argument\n"); my_putstr("Usage : ./bsq [file]\n"); return (1); } if ((s = my_argv_gest(argv[1])) == NULL) return (1); if ((move = my_square_algo(s)) == NULL) return (1); my_aff_final(s, move); my_final_free(s, move); return (0); }
void end_shell(t_hist *history, char *term) { my_final_free(NULL, NULL, NULL, history); set_visibility_cursor(term, 1); set_canon(0); }