Instead of reading a file into a structure have the object read allocate memory for the object and return a pointer to it. Then have the caller verify it is the correct type of object.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.