1BSON_MALLOC(3) libbson BSON_MALLOC(3)
2
3
4
6 bson_malloc - bson_malloc()
7
9 void *
10 bson_malloc (size_t num_bytes);
11
13 • num_bytes: A size_t containing the number of bytes to allocate.
14
16 This is a portable malloc() wrapper.
17
18 In general, this function will return an allocation at least
19 sizeof(void*) bytes or bigger.
20
21 If there was a failure to allocate num_bytes bytes, the process will be
22 aborted.
23
24 WARNING:
25 This function will abort on failure to allocate memory.
26
28 A pointer to a memory region which HAS NOT been zeroed.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.20.0 Nov 18, 2021 BSON_MALLOC(3)