1BSON_STRNDUP(3) Libbson BSON_STRNDUP(3)
23
4
NAME
6bson_strndup - bson_strndup()
7
SYNOPSIS
9char *
10bson_strndup (const char *str, size_t n_bytes);
11
PARAMETERS
13· str: A string to copy.
1415
· n_bytes: A size_t.
16
DESCRIPTION
18Allocates a new string and copies up to n_bytes from str into it. A
19trailing \0 is always set.
20
RETURNS
22A newly allocated string that should be freed with bson_free().
23
AUTHOR
25MongoDB, Inc
26
COPYRIGHT
282017-present, MongoDB, Inc
2930
31
32
33
1.13.1 Jan 24, 2019 BSON_STRNDUP(3)