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

SYNOPSIS

6          void *
7          bson_malloc0 (size_t num_bytes);
8

PARAMETERS

10num_bytes: A size_t.
11

DESCRIPTION

13       This  is a portable malloc() wrapper that also sets the memory to zero.
14       Similar to calloc().
15
16       In  general,  this  function  will  return  an  allocation   at   least
17       sizeof(void*) bytes or bigger.
18
19       If there was a failure to allocate num_bytes bytes, the process will be
20       aborted.
21
22       WARNING:
23          This function will abort on failure to allocate memory.
24

RETURNS

26       A pointer to a memory region which HAS been zeroed.
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.25.1                           Nov 08, 2023                  BSON_MALLOC0(3)
Impressum