1BSON_STRNDUP(3)                     libbson                    BSON_STRNDUP(3)
2
3
4

SYNOPSIS

6          char *
7          bson_strndup (const char *str, size_t n_bytes);
8

PARAMETERS

10str: A string to copy.
11
12n_bytes: A size_t.
13

DESCRIPTION

15       Allocates  a  new  string  and copies up to n_bytes from str into it. A
16       trailing \0 is always set.
17

RETURNS

19       A newly allocated string that should be freed with bson_free().
20

AUTHOR

22       MongoDB, Inc
23
25       2017-present, MongoDB, Inc
26
27
28
29
301.25.1                           Nov 08, 2023                  BSON_STRNDUP(3)
Impressum