myshellin/report/code/builtins.txt
2021-07-26 02:47:25 -04:00

10 lines
183 B
Plaintext

void run_builtin(StringArray *args) {
if (strcmp(args->array[0], "exit") == 0) {
exit_shell(args);
}
}
void exit_shell(StringArray *args) {
exit(EXIT_SUCCESS);
}