final fix
This commit is contained in:
parent
bea940fdec
commit
9135a8412b
@ -25,14 +25,17 @@ int main() {
|
||||
char *r = fgets(line, SIZE, stdin);
|
||||
|
||||
if (r == NULL) {
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
if (strcmp(line, "\n") == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int value = strtol(line, NULL, 10);
|
||||
if (value == 0) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
char name[SIZE];
|
||||
memset(name, 0, SIZE);
|
||||
char *zaciatok_mena = strchr(line, ' ') + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user