Testing
This commit is contained in:
parent
798237d68a
commit
209967ef0c
@ -39,14 +39,6 @@ int read_pizza(struct pizza *item) {
|
|||||||
char line[LINE_SIZE];
|
char line[LINE_SIZE];
|
||||||
char line2[LINE_SIZE];
|
char line2[LINE_SIZE];
|
||||||
|
|
||||||
if (!fgets(line, sizeof(line), stdin))
|
|
||||||
return 0;
|
|
||||||
if (strlen(line) == 0)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (!fgets(line2, sizeof(line2), stdin))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
|
|
||||||
char *endptr;
|
char *endptr;
|
||||||
float value = strtof(line2, &endptr);
|
float value = strtof(line2, &endptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user