BSON_STRNLEN(3)

NAME
bson_strnlen()

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

PARAMETERS

.B s
    A string.

.B maxlen
    The maximum size of string to check.

DESCRIPTION
A portable version of strnlen() .

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

COLOPHON
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.