My problem comes from the fact that I cannot write a routine
that will return an array of structures. I got the sscanf/fscanf thing down. I need something like:
array_of_structures?? ( char *file_to_read ) {
// 1) open file
// 2) read lines and fill struct
// 3) copy struct to an array?
//...
I am looking for a generic function for reading parameter
files and returning something like an array of strucures.
My param file is something like:
string string int float
The number of parameters is not fixed.
My problem is comes from returning a "list" of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.