bson_string_append(3)

BSON_STRING_APPEND(3) libbson BSON_STRING_APPEND(3)

Warning:

Deprecated since version 1.29.0.



SYNOPSIS

void
bson_string_append (bson_string_t *string, const char *str);


PARAMETERS

  • string: A bson_string_t <>.
  • str: A string.

DESCRIPTION

Appends the ASCII or UTF-8 encoded string str to string. This is not suitable for embedding NULLs in strings.

Warning:

The length of the resulting string (including the NULL terminator) MUST NOT exceed UINT32_MAX.


Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

February 10, 2026 1.30.7