diff options
| author | nasrlol <nsrddyn@gmail.com> | 2025-02-18 21:13:36 +0100 |
|---|---|---|
| committer | nasrlol <nsrddyn@gmail.com> | 2025-02-18 21:13:36 +0100 |
| commit | d5ad52317a8abdfaa5237cf326ce718d6f75eedf (patch) | |
| tree | 31a8eea45b5a8eb38ca1f16e3141117f96a83b7b /main.c | |
| parent | a12ce036193a43fdd802167895ef64abdd3d4383 (diff) | |
implemented the clear function in the if else ladder, dont know if there is a nicer way to do this, ill have to think about it
Signed-off-by: nasrlol <nsrddyn@gmail.com>
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -111,5 +111,8 @@ int main(void) { printf("%s", new_input.arg); free(new_input.arg); } + if (strcmp(new_input.com, "clear") == 0) { + clear(); + } } } |
