Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Author

       MongoDB, Inc

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);

See Also