summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2025-01-30 21:15:17 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2025-01-30 21:15:17 +0100
commit152223fdc12ab39478998b71b18353b89dbb4acf (patch)
tree7ff042079935fa809cfd28b6192e6b5f9fdd594b
parent6760399883bc8db547dffd6458a0906e1eeb3243 (diff)
Learning about getting the commands history and
actually saving them, having trouble doing it in c
-rw-r--r--main.c3
1 files changed, 1 insertions, 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 {