From 5af880c796b4ba2ed5babb5c294bfe3cf5db35be Mon Sep 17 00:00:00 2001 From: Weber Date: Thu, 28 Mar 2024 17:56:47 +0000 Subject: [PATCH] test --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 531c295..e64b6ec 100644 --- a/a1/program.c +++ b/a1/program.c @@ -9,7 +9,7 @@ int main() { char uloha[MAX_LINE_LENGTH]; while (fgets(uloha, MAX_LINE_LENGTH, stdin) != NULL) { - if (strlen(uloha) <= 1) { + if (strlen(uloha) == 1 && uloha[0] == '\n') { printf("OK\n"); continue; }