From 8e19c7fbab39bf96356bf4e940e9921936b4ffcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Mon, 30 Mar 2026 07:57:30 +0000 Subject: [PATCH] Aktualizovat a3/program.c --- a3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a3/program.c b/a3/program.c index 3df2532..4e1a51e 100644 --- a/a3/program.c +++ b/a3/program.c @@ -28,9 +28,9 @@ int main() { if (studentsAmount == 0) { - if(sscanf(line, "%d", studentsAmount) == 1) { continue; } + if(sscanf(line, "%d", &studentsAmount) == 1) { continue; } } - else if(sscanf(line, "%s", processedName) == 1) + else if(sscanf(line, "%s", &processedName) == 1) { strcpy(student[i].meno, processedName); strncat(student[i].meno, &newLineSymbol, 1);