Synopsis
rsize_t strnlen_s(const char *s,
                  rsize_t n);
Description

strnlen_s returns the length of the string pointed to by s, up to a maximum of n characters. The parameters are checked for null pointer cases. On error the current constraint_handler is called.

strnlen_s returns 0 on success and non-zero on failure.