Lets say i have created a string dynamically in the program
char* s = malloc(sizeof(char) * 128);
before we start using s, How to check whether the memory is allocated or not?
free(s);
And before using free() , I want to check are there any other pointers pointing to s .