From 4a2c5d12a72e805e5f7730fc28f3677ac66066e0 Mon Sep 17 00:00:00 2001 From: Ivan Leichenko Date: Mon, 14 Oct 2024 15:44:28 +0200 Subject: [PATCH] update cv3 --- cv3/program.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cv3/program.c b/cv3/program.c index 7fdb5d3..37fcc86 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -81,6 +81,11 @@ int main(int argc, char const *argv[]) { break; } + if(buf[0] == '.') + { + printf("bad input\n"); + return 0; + } for (int i = 0; i < strcspn(buf, "\n"); i++) { if(isalpha(buf[i]) != 0)