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)