diff options
| author | Abdellah El Morabit <nsrddyn@gmail.com> | 2025-01-30 21:15:17 +0100 |
|---|---|---|
| committer | Abdellah El Morabit <nsrddyn@gmail.com> | 2025-01-30 21:15:17 +0100 |
| commit | 152223fdc12ab39478998b71b18353b89dbb4acf (patch) | |
| tree | 7ff042079935fa809cfd28b6192e6b5f9fdd594b | |
| parent | 6760399883bc8db547dffd6458a0906e1eeb3243 (diff) | |
Learning about getting the commands history and
actually saving them, having trouble doing it in c
| -rw-r--r-- | main.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 { |
