bson_strnlen man page

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 was found.

Colophon

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

Info

2016‐09‐02 libbson