1BSON_MALLOC0(3)                     libbson                    BSON_MALLOC0(3)
2
3
4

NAME

6       bson_malloc0 - bson_malloc0()
7

SYNOPSIS

9          void *
10          bson_malloc0 (size_t num_bytes);
11

PARAMETERS

13num_bytes: A size_t.
14

DESCRIPTION

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

RETURNS

29       A pointer to a memory region which HAS been zeroed.
30

AUTHOR

32       MongoDB, Inc
33
35       2017-present, MongoDB, Inc
36
37
38
39
401.20.0                           Nov 18, 2021                  BSON_MALLOC0(3)
Impressum