Frees a block of memory that was previously allocated by DosSubAllocMem.

#define INCL_DOSMEMMGR
#include <os2.h>

PVOID     pbBase;  /*  The offset of the memory pool to which the block is to be freed. */
PVOID     pb;      /*  The offset of the memory block to be freed. */
ULONG     cb;      /*  The size, in bytes, of the memory block to be freed. */
APIRET    ulrc;    /*  Return Code. */

ulrc = DosSubFreeMem(pbBase, pb, cb);


[Back] [Next]