Convert a NUL-terminated C string (type(c_ptr)) into a Fortran character value. Returns an empty string for a NULL pointer.
type(c_ptr)