ds
This commit is contained in:
parent
14855a54d4
commit
0e205349ec
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user