Return the length of str, limited to at most maxlen bytes.
Declared in <openssl/crypto.h>
size_t
OPENSSL_strnlen(
char const* str,
size_t maxlen);
Number of non-NUL bytes before the first NUL, or maxlen if none is found.
| Name | Description |
|---|---|
| str | Possibly non-NUL-terminated buffer to measure. |
| maxlen | Maximum number of bytes to examine. |