Mission Base

Program Base Library Functions

size_t pblStringBuilderAppendStrN

( PblStringBuilder* stringBuilder,
  size_t n,
  const char* data )

Appends at most n bytes of a string to the end of the data of the string builder.

Documentation

Appends at most n bytes of a string to the end of the data of the string builder.

This function has a time complexity of O(N), with N being the number of characters to append.

Parameters:
stringBuilder - The string builder to use
n - The maximum number of bytes to append
data - The data to be added to the string builder
Returns:
size_t rc >= 0: The length of the string builder.
size_t rc == -1: An error, see pbl_errno:
PBL_ERROR_OUT_OF_MEMORY - Out of memory.

Alphabetic index



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