bson_string_truncate man page

bson_string_truncate ā€” bson_string_truncate()

Synopsis

void
bson_string_truncate (bson_string_t *string, uint32_t len);

Parameters

Description

Truncates the string so that it is len bytes in length. This must be smaller or equal to the current length of the string.

A \0 byte will be placed where the end of the string occurrs.

Author

MongoDB, Inc

Info

Nov 02, 2017 1.8.1 Libbson