This commit is contained in:
Andrii Hermaniuk 2022-04-07 16:53:51 +02:00
parent 14855a54d4
commit 0e205349ec

View File

@ -30,9 +30,12 @@ int main(){
char* end = NULL; char* end = NULL;
int value = strtol(line,&end,10); int value = strtol(line,&end,10);
if (value == 0){ if (value == 0&&line[0]=='\n'){
// Premena sa nepodarila // Premena sa nepodarila
break; break;
}else if(value==0&&line[0]!='\n'){
printf("Nepodarilo nacitat nic\n");
return 0;
} }
char *name=end+1; char *name=end+1;