I am programming in GTK using C and need help solving a problem I have. I am writing a simple program that shows student records. The problem is that I would like to create "student" struct objects dynamically as needed, every time a new student is read from the file.
I know I have to use malloc and my question is, would it be legal to declare a global pointer to the struct and use malloc to create new instances? Thanks.