size_t bson_strnlen (const char *s, size_t maxlen);
s
maxlen
A portable version of strnlen().
strnlen()
The length of s in bytes or maxlen if no \0 was found.
\0