This commit is contained in:
Maryna Kravtsova 2020-10-05 14:33:14 +02:00
parent d9759f6075
commit c2cc886386

View File

@ -19,9 +19,6 @@ int read_pizza(struct pizza* item){
char *l1 = fgets(line1,LINESIZE,stdin); char *l1 = fgets(line1,LINESIZE,stdin);
char *l2 = fgets(line2,LINESIZE,stdin); char *l2 = fgets(line2,LINESIZE,stdin);
//line1[strlen(line1)-1] = '\0';
//line2[strlen(line2)-1] = '\0';
float value = strtof(line2, &l2); float value = strtof(line2, &l2);
if(value == 0.0F){ if(value == 0.0F){
return 0; return 0;