1WCSNLEN(3)                 Linux Programmer's Manual                WCSNLEN(3)
2
3
4

NAME

6       wcsnlen - determine the length of a fixed-size wide-character string
7

SYNOPSIS

9       #include <wchar.h>
10
11       size_t wcsnlen(const wchar_t *s, size_t maxlen);
12

DESCRIPTION

14       The   wcsnlen()  function  is  the  wide-character  equivalent  of  the
15       strnlen() function. It returns the number  of  wide-characters  in  the
16       string  pointed to by s, not including the terminating L'\0' character,
17       but at most maxlen. In doing this, wcsnlen() looks only  at  the  first
18       maxlen wide-characters at s and never beyond s+maxlen.
19

RETURN VALUE

21       The  wcsnlen() function returns wcslen(s), if that is less than maxlen,
22       or maxlen if there is no L'\0' character among the  first  maxlen  wide
23       characters pointed to by s.
24

CONFORMING TO

26       This function is a GNU extension.
27

SEE ALSO

29       strnlen(3), wcslen(3)
30
31
32
33GNU                               1999-07-25                        WCSNLEN(3)
Impressum