SysTutorials

Linux Manual Pages › Section 3

bson_strnlen(3)

NAME

bson_strnlen() – A portable version of strnlen().

SYNOPSIS


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

PARAMETERS

s

A string.
maxlen

The maximum size of string to check.

DESCRIPTION

A portable version of strnlen(3) \&.

RETURNS

The length of s in bytes or maxlen if no