Incidentally, my initial theory of using...
isn't reliable at all.
printf("The pointer has had memory allocated.\n");
For instance, the following code, when run, claimed that the pointer was initialised.... basically, it's not true... obviously it just pointed to a memory address (which is non zero).
I guess we should follow the advice of cwr.
if ( char_ptr )
printf("The char pointer was initialised.\n");
printf("The char pointer was not initialised.\n");