This commit is contained in:
Anton Dolozin 2025-09-23 22:16:54 +02:00
parent 798237d68a
commit 209967ef0c

View File

@ -39,14 +39,6 @@ int read_pizza(struct pizza *item) {
char line[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;
float value = strtof(line2, &endptr);