Hi friends!! I am developing an application which uses dynamic lists, with structures as nodes. I allocate structures with malloc(), and free them with free(). But when I free a struct with free, the struct is not pointing to null.
So here it always print "node not null". My question is, how can i check that a structure has been freed with free?Code:struct mystruct *node=malloc(sizeof(mystruct)); . . free(node); if(node==NULL)printf("node null"); else printf("node not null");
Thank you very much!!