summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornasrlol <nsrddyn@gmail.com>2025-02-18 21:13:36 +0100
committernasrlol <nsrddyn@gmail.com>2025-02-18 21:13:36 +0100
commitd5ad52317a8abdfaa5237cf326ce718d6f75eedf (patch)
tree31a8eea45b5a8eb38ca1f16e3141117f96a83b7b
parenta12ce036193a43fdd802167895ef64abdd3d4383 (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>
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 7ed0cee..797329d 100644
--- a/main.c
+++ b/main.c
@@ -111,5 +111,8 @@ int main(void) {
printf("%s", new_input.arg);
free(new_input.arg);
}
+ if (strcmp(new_input.com, "clear") == 0) {
+ clear();
+ }
}
}