stMemFree function
Declaration:
BOOL stMemFree(
  PVOID Ptr
);
Parameters:
Ptr

Address of the block to release.

Return value:

TRUE on success or FALSE on failure. Use stGetLastError function to obtain extended error information.

Description:

Function releases memory block allocated by stMemAllocfunction.

If memory management functions are inactive for alternative C library (by setting ST_USE_MALLOC_CLIB for 1), stMemFree will release memory by using free function from standard C library.

If memory management functions are active for alternative C library, function will release memory by using stMemoryFree, with memory pool, that is defined by stMemoryPoolvariable. In case you need more information, please refer to its description.

Version:1.0
Header file:ST_CLIB.h (include ST_API.h)
See also: BOOL, FALSE, memory management, NULL, PVOID, ST_USE_MALLOC_CLIB, stGetLastError, stMemAlloc, stMemoryPool, stMemoryFree, TRUE
SpaceShadow documentation