From 60bcf90200ed787c29deabbc1511828560e05498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Szab=C3=B3?= Date: Fri, 10 Apr 2020 09:37:15 +0200 Subject: [PATCH] c3 --- du5/program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/du5/program.c b/du5/program.c index adc5838..c424540 100644 --- a/du5/program.c +++ b/du5/program.c @@ -47,6 +47,9 @@ int main(int argc, char const *argv[]){ char* end = NULL; int value = strtol(line,&end,10); if (value == 0){ + if(size!=0){ + break; + } printf("Nepodarilo nacitat nic\n"); return 0; }