bson_strnlen - Man Page

Synopsis

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

Parameters

Description

A portable version of strnlen()​.

Returns

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

Author

MongoDB, Inc

Info

Oct 09, 2026 2.5.6 libbson