char * buffer = FixStrAlloc (strlen ("Hello, world!"));
if (buffer)
strcpy (buffer, "Hello, world!");
...
FreeFixStr (buffer);
|
|
Allocates a buffer for a length-fixed string. This function allocates a buffer from the length-fixed string heap for a string which is len bytes long (does not include the null character of the string).
|
|
|
Duplicates a length-fixed string. This function allocates a buffer from the length-fixed string heap and copy the string str to the buffer.
|
|
|
Frees a length-fixed string. This function frees the buffer used by the length-fixed string str.
|
1.4.2