![]() |
Home |
|
Function RTKAllocRTKAlloc is a high-level interface to RTKernel-32's memory allocation driver: void * RTKAlloc(unsigned size, const char * Name); ParameterssizeSpecifies the size in bytes of the memory block to allocate. NamePointer to a string with a descriptive name of the object to allocate. return valueIf the function succeeds, a pointer to the allocated block is returned. Otherwise, the program is aborted and the name of the object to be allocated is displayed using RTKernel-32's error handling mechanism (see Function RTKFatalError). Memory allocated with this function can be freed by directly calling the memory driver's function _rtkMEMFree(), declared in Rtkmem.h
|