add: msg when cmd not found

This commit is contained in:
starnakin 2023-07-26 14:44:30 +02:00
parent 3e23f44fc3
commit 0358eefcae

View File

@ -73,6 +73,13 @@ main()
cmd_print(text, NULL); cmd_print(text, NULL);
else if (strcmp(cmd, "n") == 0) else if (strcmp(cmd, "n") == 0)
cmd_numbered(text, NULL); cmd_numbered(text, NULL);
else if (strcmp(cmd, "d") == 0)
cmd_delete(text, NULL);
else
{
putstr("cmd not foud");
putchar('\n');
}
free(cmd); free(cmd);
} }
} }