From ad49fccc765d6e1261b2a16430c54678a8f3b4ad Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Thu, 21 Mar 2024 19:16:46 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8=20'c?= =?UTF-8?q?v5/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv5/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv5/program.c b/cv5/program.c index 145cd0b..a601f26 100644 --- a/cv5/program.c +++ b/cv5/program.c @@ -49,7 +49,8 @@ int main(){ int value = strtol(line,&end,10); char* zaciatok_mena = end + 1; if (value == 0){ - break; + printf("Nepodarilo nacitat nic\n"); + return 0; } int velkost_mena = strlen(zaciatok_mena) - 1; if (velkost_mena > 0){