AllocUserMem

3.1

  #include <stress.h>    

  BOOL AllocUserMem(uContig)    
  UINT uContig; /* smallest memory allocation */

The AllocUserMem function allocates memory in the USER heap until only the specified number of bytes is available. Before making any new allocations, this function frees memory previously allocated by AllocUserMem.

Parameters

uContig

Specifies the smallest size, in bytes, of memory allocations to make.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

Comments

The FreeAllUserMem function frees all memory allocated by AllocUserMem.

See Also

FreeAllUserMem