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

NAME

6       bson_strndup - bson_strndup()
7

SYNOPSIS

9          char *
10          bson_strndup (const char *str, size_t n_bytes);
11

PARAMETERS

13str: A string to copy.
14
15n_bytes: A size_t.
16

DESCRIPTION

18       Allocates  a  new  string  and copies up to n_bytes from str into it. A
19       trailing \0 is always set.
20

RETURNS

22       A newly allocated string that should be freed with bson_free().
23

AUTHOR

25       MongoDB, Inc
26
28       2017-present, MongoDB, Inc
29
30
31
32
331.21.1                           Mar 02, 2022                  BSON_STRNDUP(3)
Impressum