Mission Base

Program Base Library Functions

char* pblStringBuilderToString

( PblStringBuilder* stringBuilder )

Converts the string builder's data to a '\0' terminated string.

Documentation

Converts the string builder's data to a '\0' terminated string.

This function has a time complexity of O(N), with N being the length of the data of the string builder.

Note: The memory for the data returned is malloced, it is the caller's responsibility to free that memory!

Parameters:
stringBuilder - The string builder to use
Returns:
char * rc != NULL: The data.
char * rc == NULL: An error, see pbl_errno:
PBL_ERROR_OUT_OF_MEMORY - Out of memory.

Alphabetic index



This page was generated with the help of DOC++.