Location:
reent.h
IMPORT_C struct _reent *ImpurePtr2(void);
This is a panic free version of ImpurePtr. It allocates memory for the library globals struct and returns a pointer to it. If the memory has been allocated previously then it simply returns a pointer to the memory. If there is not enough memory available to set up the library globals then a NULL pointer will be returned.
|