Aktualizovat "program.c
This commit is contained in:
parent
aa94beb639
commit
5dbcaa2fb6
@ -130,8 +130,8 @@ int read_item(struct pizza* item){
|
|||||||
i=0;
|
i=0;
|
||||||
//printf("Comma %d\n",comma);
|
//printf("Comma %d\n",comma);
|
||||||
//printf("Comma number %d\n",comma_number);
|
//printf("Comma number %d\n",comma_number);
|
||||||
if(comma!=1)return 0;
|
if(comma>1)return 0;
|
||||||
if(comma_number!=2)return 0;
|
if(comma_number>2)return 0;
|
||||||
float value = strtof(line2,NULL);
|
float value = strtof(line2,NULL);
|
||||||
if (value == 0.0F){
|
if (value == 0.0F){
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user