diff --git a/cv5/program.c b/cv5/program.c index 0d85018..9737c31 100644 --- a/cv5/program.c +++ b/cv5/program.c @@ -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;