1BSON_APPEND_UNDEFINED(3) libbson BSON_APPEND_UNDEFINED(3)
2
3
4
6 #define BSON_APPEND_UNDEFINED(b, key) \
7 bson_append_undefined (b, key, (int) strlen (key))
8
9 bool
10 bson_append_undefined (bson_t *bson, const char *key, int key_length);
11
13 • bson: A bson_t.
14
15 • key: An ASCII C string containing the name of the field.
16
17 • key_length: The length of key in bytes, or -1 to determine the length
18 with strlen().
19
21 The bson_append_undefined() function shall append a new element to bson
22 of type BSON_TYPE_UNDEFINED. Undefined is common in Javascript. How‐
23 ever, this element type is deprecated and should not be used in new
24 code.
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.25.1 Nov 08, 2023 BSON_APPEND_UNDEFINED(3)