[#OPENSSL_strnlen]
= OPENSSL&lowbar;strnlen
:mrdocs:

Return the length of `str,` limited to at most `maxlen` bytes&period;

== Synopsis

Declared in `&lt;openssl&sol;crypto&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
OPENSSL&lowbar;strnlen(
    char const* str,
    size&lowbar;t maxlen);
----

== Return Value

Number of non&hyphen;NUL bytes before the first NUL, or `maxlen` if none is found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| Possibly non&hyphen;NUL&hyphen;terminated buffer to measure&period;
| *maxlen*
| Maximum number of bytes to examine&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
