1BSON_STRNLEN(3) libbson BSON_STRNLEN(3)
23
4
SYNOPSIS
6size_t
7bson_strnlen (const char *s, size_t maxlen);
8
PARAMETERS
10• s: A string.
1112
• maxlen: The maximum size of string to check.
13
DESCRIPTION
15A portable version of strnlen().
16
RETURNS
18The length of s in bytes or maxlen if no \0 was found.
19
AUTHOR
21MongoDB, Inc
22
COPYRIGHT
242017-present, MongoDB, Inc
2526
27
28
29
1.25.1 Nov 08, 2023 BSON_STRNLEN(3)