final fix

This commit is contained in:
Michal Utľák 2024-03-13 12:08:51 +01:00
parent bea940fdec
commit 9135a8412b

View File

@ -28,11 +28,14 @@ int main() {
break; break;
} }
int value = strtol(line, NULL, 10); if (strcmp(line, "\n") == 0) {
if (value == 0) {
continue; continue;
} }
int value = strtol(line, NULL, 10);
if (value == 0) {
break;
}
char name[SIZE]; char name[SIZE];
memset(name, 0, SIZE); memset(name, 0, SIZE);
char *zaciatok_mena = strchr(line, ' ') + 1; char *zaciatok_mena = strchr(line, ' ') + 1;