From e05fd36e7619704fc5dbe23c2ec709b5798e9c64 Mon Sep 17 00:00:00 2001 From: Ivan Leichenko Date: Mon, 14 Oct 2024 15:36:31 +0200 Subject: [PATCH] updte cv3 --- cv3/program.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 3bad3d7..799a97b 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -81,7 +81,11 @@ int main(int argc, char const *argv[]) { break; } - + if(isalpha(buf) != 0) + { + printf("bad input\n"); + return 0; + } buf[strcspn(buf, "\n")] = '\0'; if(!check_op(buf[0])) {