Hi!
I want to write a function that will be able to detect pointers in a structure and if necessary, free them. It will work like this. If the pointer is found in a structure than check if it was freed. If it was not freed, than free it.
Example:
Is this possible? If anyone of you guys/girls have any idea, please post it.Code:... typedef struct _TEMP { short *Number; char **Text, Temp; int i; } TEMP; ... CheckStruct (TEMP); ...
Thanks!



LinkBack URL
About LinkBacks



.