1BSON_APPEND_NULL(3) libbson BSON_APPEND_NULL(3)
2
3
4
6 bson_append_null - bson_append_null()
7
9 #define BSON_APPEND_NULL(b, key) bson_append_null (b, key, (int) strlen (key))
10
11 bool
12 bson_append_null (bson_t *bson, const char *key, int key_length);
13
15 · bson: A bson_t.
16
17 · key: An ASCII C string containing the name of the field.
18
19 · key_length: The length of key in bytes, or -1 to determine the length
20 with strlen().
21
23 The bson_append_null() function shall append a new element to bson of
24 type BSON_TYPE_NULL.
25
27 Returns true if the operation was applied successfully. The function
28 will fail if appending the value grows bson larger than INT32_MAX.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.17.4 Feb 04, 2021 BSON_APPEND_NULL(3)