Allocating a Blank String from the Heap

To allocate a blank string, use the memory for blank string function, mem_stblank():

UCHAR *mem_stblank(st_len)

UINT st_len;        /* Length of string, excluding null terminator        */

mem_stblank() allocates memory to hold a string of length st_len and the null terminator with a call to mem_get(). The number of bytes allocated is st_len + 1. The string is filled with blanks and a pointer to the string is returned.


Home Contents Previous Next