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

Address of the memory block to release.

Return value:

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

Description:

This function releases a memory block previously allocated by the stMemAlloc function.

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

If memory management functions are active in the alternative C library, the function will release memory using stMemoryFree, utilizing the memory pool defined by the stMemoryPool variable. Please refer to its description for further information.

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