1BSON_APPEND_UNDEFINED(3) Libbson BSON_APPEND_UNDEFINED(3)
2
3
4
6 bson_append_undefined - bson_append_undefined()
7
9 #define BSON_APPEND_UNDEFINED(b, key) \
10 bson_append_undefined (b, key, (int) strlen (key))
11
12 bool
13 bson_append_undefined (bson_t *bson, const char *key, int key_length);
14
16 · bson: A bson_t.
17
18 · key: An ASCII C string containing the name of the field.
19
20 · key_length: The length of key in bytes, or -1 to determine the length
21 with strlen().
22
24 The bson_append_undefined() function shall append a new element to bson
25 of type BSON_TYPE_UNDEFINED. Undefined is common in Javascript. How‐
26 ever, this element type is deprecated and should not be used in new
27 code.
28
30 Returns true if the operation was applied successfully. The function
31 will fail if appending the value grows bson larger than INT32_MAX.
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.13.1 Jan 24, 2019 BSON_APPEND_UNDEFINED(3)