1BSON_MALLOC0(3) Libbson BSON_MALLOC0(3)
2
3
4
6 bson_malloc0 - bson_malloc0()
7
9 void *
10 bson_malloc0 (size_t num_bytes);
11
13 ยท num_bytes: A size_t.
14
16 This is a portable malloc() wrapper that also sets the memory to zero.
17 Similar to calloc().
18
19 In general, this function will return an allocation at least
20 sizeof(void*) bytes or bigger.
21
22 If there was a failure to allocate num_bytes bytes, the process will be
23 aborted.
24
25 WARNING:
26 This function will abort on failure to allocate memory.
27
29 A pointer to a memory region which HAS been zeroed.
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.15.2 Nov 06, 2019 BSON_MALLOC0(3)