From 152223fdc12ab39478998b71b18353b89dbb4acf Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Thu, 30 Jan 2025 21:15:17 +0100 Subject: Learning about getting the commands history and actually saving them, having trouble doing it in c --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index 22b9a2a..50b2ba6 100644 --- a/main.c +++ b/main.c @@ -17,13 +17,12 @@ int main() { char *TEMP = ""; scanf("%s", &TEMP); - for (int i = 0; i != "/0"; i++) + for (int i = 0; (TEMP + i) != "/0"; i++) { tolower(TEMP[0]); } if (TEMP == "exit") { - RUNNING = false; printf("exited successfully"); } else { -- cgit v1.2.3-70-g09d2