This commit is contained in:
Tančáková 2024-03-20 15:34:37 +01:00
parent e9b1cca2e4
commit 68dabc4b29

View File

@ -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;