1BSON_STRING_TRUNCATE(3) Libbson BSON_STRING_TRUNCATE(3)
2
3
4
6 bson_string_truncate - bson_string_truncate()
7
9 void
10 bson_string_truncate (bson_string_t *string, uint32_t len);
11
13 · string: A bson_string_t.
14
15 · len: The new length of the string, excluding the trailing \0.
16
18 Truncates the string so that it is len bytes in length. This must be
19 smaller or equal to the current length of the string.
20
21 A \0 byte will be placed where the end of the string occurs.
22
24 MongoDB, Inc
25
27 2017-present, MongoDB, Inc
28
29
30
31
321.13.1 Jan 24, 2019 BSON_STRING_TRUNCATE(3)