1BSON_REALLOC(3)                     libbson                    BSON_REALLOC(3)
2
3
4

SYNOPSIS

6          void *
7          bson_realloc (void *mem, size_t num_bytes);
8

PARAMETERS

10mem: A memory region.
11
12num_bytes: A size_t containing the new requested size.
13

DESCRIPTION

15       This is a portable realloc() wrapper.
16
17       In   general,   this  function  will  return  an  allocation  at  least
18       sizeof(void*) bytes or bigger. If num_bytes is 0, then  the  allocation
19       will be freed.
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.25.1                           Nov 08, 2023                  BSON_REALLOC(3)
Impressum