diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /42sh/src/42sh.c | |
Diffstat (limited to '42sh/src/42sh.c')
| -rw-r--r-- | 42sh/src/42sh.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/42sh/src/42sh.c b/42sh/src/42sh.c new file mode 100644 index 0000000..780d575 --- /dev/null +++ b/42sh/src/42sh.c @@ -0,0 +1,16 @@ +#define _POSIX_C_SOURCE 200809L + +#include "helper.h" + +int main(int argc, char *argv[]) +{ + env_setup(); + + struct string *input = get_input(argc, argv); + + int r = _process_input(input); + + env_unset("PRETTY_PRINT"); + + return r; +} |
