I ran into a situation while coding where I could end up needing to replace the pointer to a value that is either dynamically allocated with malloc or a pointer to a contstant value with another pointer. Is there a way I can check the status of the memory location to see which it is?