This commit is contained in:
Zoltán Szabó 2020-04-10 09:23:04 +02:00
parent 957fbf894d
commit 32bec0111a

View File

@ -40,11 +40,15 @@ int main(int argc, char const *argv[]){
if (r == NULL){ if (r == NULL){
break; break;
} }
if(line[0]=='\n'){
break;
}
char* end = NULL; char* end = NULL;
int value = strtol(line,&end,10); int value = strtol(line,&end,10);
if (value == 0){ if (value == 0){
break; printf("Nepodarilo nacitat nic\n");
return 0;
} }
char tmp[SIZE]; char tmp[SIZE];
memset(tmp, 0, SIZE); memset(tmp, 0, SIZE);