DOKK / manpages / debian 10 / libbson-doc / bson_strnlen.3.en
BSON_STRNLEN(3) Libbson BSON_STRNLEN(3)

bson_strnlen - bson_strnlen()

size_t
bson_strnlen (const char *s, size_t maxlen);


  • s: A string.
  • maxlen: The maximum size of string to check.

A portable version of strnlen().

The length of s in bytes or maxlen if no \0 was found.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0