int main(int argc, char **argv, char **envp) { char *env; env = find_term(envp); useless_check(argc, argv); if (tgetent(NULL, env) == -1) my_error("Error with syscall tgetent"); free(env); display_menu(); my_choice(); return (0); }
void my_echo_e(char **arr, int n, int i) { int j; j = 0; while (arr && arr[i][j] != '\0') { if (arr[i][j] == '\\') { my_choice(arr, i, &j); j += 2; } (void)write(0, &arr[i][j], 1); if (arr[i][j]) j++; } if (n == 0) write(0, "\n", 1); }