funguje
This commit is contained in:
parent
e9b1cca2e4
commit
68dabc4b29
@ -34,7 +34,7 @@ int main() {
|
||||
char buffer[MAX_BUFFER_LENGTH];
|
||||
while (fgets(buffer, sizeof(buffer), stdin) != NULL) {
|
||||
// Načítajte počet hlasov a meno študenta
|
||||
char *token = strtok(buffer, " ");
|
||||
char *token = strtok(buffer, "\x20");
|
||||
if (token == NULL) {
|
||||
fprintf(stderr, "Chyba: Neplatný formát vstupu.\n");
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user