size_t
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 BSON_STRNLEN(3)
Description
A portable version of strnlen().
Parameters
• s: A string.
• maxlen: The maximum size of string to check.
Returns
The length of s in bytes or maxlen if no \0 was found.
Synopsis
size_t
bson_strnlen (const char *s, size_t maxlen);
