From fa4f2c4df89e85248072795ca0d753642c063410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Mon, 30 Mar 2026 11:57:04 +0000 Subject: [PATCH] Aktualizovat a3/program.c --- a3/program.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/a3/program.c b/a3/program.c index c6340cc..588af67 100644 --- a/a3/program.c +++ b/a3/program.c @@ -4,7 +4,7 @@ #include #define BUFFER_SIZE 64 -#define STUDENT_SIZE 32 +#define STUDENT_SIZE 64 struct studentApplication { @@ -66,6 +66,11 @@ int main() strcpy(student[i].surname, processedSurname); i++; } + else if(sscanf(line, " %s", processedName) == 1) + { + strcpy(student[i].name, processedName); + i++; + } } if (studentsAmount == 0)