strnlen(l)

NAME
strnlen - get length of a string

SYNOPSIS

# include <string.h>
# include <begemot.h>

size_t strnlen(const char *s, size_t n);

DESCRIPTION
This function returns the length of the string, pointed to by s. Not more than n characters are checked for a NUL character.

RETURN VALUE
If a NUL character is found in the first n-1 characters of the string, the length of the string (as reported by strlen(3C) is returned. If no NUL is found, n is returned.

SEE ALSO
strlen(3C)