1BSON_REALLOC(3)                     Libbson                    BSON_REALLOC(3)
2
3
4

NAME

6       bson_realloc - bson_realloc()
7

SYNOPSIS

9          void *
10          bson_realloc (void *mem, size_t num_bytes);
11

PARAMETERS

13       · mem: A memory region.
14
15       · num_bytes: A size_t containing the new requested size.
16

DESCRIPTION

18       This is a portable realloc() wrapper.
19
20       In   general,   this  function  will  return  an  allocation  at  least
21       sizeof(void*) bytes or bigger. If num_bytes is 0, then  the  allocation
22       will be freed.
23
24       If there was a failure to allocate num_bytes bytes, the process will be
25       aborted.
26
27       WARNING:
28          This function will abort on failure to allocate memory.
29

RETURNS

31       A pointer to a memory region which HAS NOT been zeroed.
32

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.15.2                           Nov 06, 2019                  BSON_REALLOC(3)
Impressum