| BSON_STRING_TRUNCATE(3) | libbson | BSON_STRING_TRUNCATE(3) |
WARNING:
void bson_string_truncate (bson_string_t *string, uint32_t len);
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 occurs.
WARNING:
WARNING:
MongoDB, Inc
2009-present, MongoDB, Inc.
| May 7, 2025 | 1.30.4 |