1BSON_MALLOC(3)                      libbson                     BSON_MALLOC(3)
2
3
4

NAME

6       bson_malloc - bson_malloc()
7

SYNOPSIS

9          void *
10          bson_malloc (size_t num_bytes);
11

PARAMETERS

13num_bytes: A size_t containing the number of bytes to allocate.
14

DESCRIPTION

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

RETURNS

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

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.24.3                           Aug 17, 2023                   BSON_MALLOC(3)
Impressum