I'm doing a program in C, the program reads a file, in that file, the program finds X "elements", sometimes they are 3, sometimes 4... For each element it has to create a struct that I'm going to change the values during the program, but I need them to be initialized.
The problem is that I don't know if it's possible to initialize X structs without knowing how many I'm going to need (it depends on the file), and if it's possible I don't know how to do it...