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.
Is this possible? If anyone of you guys/girls have any idea, please post it.Code:
typedef struct _TEMP
char **Text, Temp;