skuska
This commit is contained in:
parent
81814b568f
commit
f18e9b48c3
@ -45,7 +45,7 @@ int main() {
|
|||||||
students_capacity = (students_capacity + 1) * 2;
|
students_capacity = (students_capacity + 1) * 2;
|
||||||
student_t *new_students = realloc(students, students_capacity * sizeof(student_t));
|
student_t *new_students = realloc(students, students_capacity * sizeof(student_t));
|
||||||
if (new_students == NULL) {
|
if (new_students == NULL) {
|
||||||
fprintf(stderr, "Error: Memory reallocation failed\n");
|
fprintf(stderr, "Chyba");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
students = new_students;
|
students = new_students;
|
||||||
@ -68,4 +68,3 @@ int main() {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user