What I need to do is have a variable, variable list inside a fscanf function. I am trying to make my visualiztion program independant of the format of the simulation files. Thus I am using a configuration file to define the format of the input files in the preferences. Now the idea I have is to use pointers something like so
fscanf(file, format_str, p1, p2, p3, p4, p5 ,p6);
Where the p's are void ptrs of which I can change what they point to depending on the configuration format specified. Now would this work? and are there any major problems I am getting myself into?