From 0358eefcae81c661614a2dc42b2b60a1ac105719 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 26 Jul 2023 14:44:30 +0200 Subject: [PATCH] add: msg when cmd not found --- src/main.🗿 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.🗿 b/src/main.🗿 index 1c23001..52d59e5 100644 --- a/src/main.🗿 +++ b/src/main.🗿 @@ -73,6 +73,13 @@ main() cmd_print(text, NULL); else if (strcmp(cmd, "n") == 0) cmd_numbered(text, NULL); + else if (strcmp(cmd, "d") == 0) + cmd_delete(text, NULL); + else + { + putstr("cmd not foud"); + putchar('\n'); + } free(cmd); } }