*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> wcsnlen (3)              
Title
Content
Arch
Section
 

WCSNLEN(3)

Contents


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

       #include <wchar.h>

       size_t wcsnlen (const wchar_t *s, size_t maxlen);

DESCRIPTION    [Toc]    [Back]

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

RETURN VALUE    [Toc]    [Back]

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

CONFORMING TO    [Toc]    [Back]

       This function is a GNU extension.

SEE ALSO    [Toc]    [Back]

      
      
       strnlen(3), wcslen(3)



GNU				  1999-07-25			    WCSNLEN(3)
[ Back ]
 Similar pages
Name OS Title
wcswidth Linux determine columns needed for a fixed-size wide character string
strnlen Linux determine the length of a fixed-size string
wcslen Linux determine the length of a wide-character string
Tie::SubstrHash IRIX Fixed-table-size, fixed-key-length hashing
wcsncmp Linux compare two fixed-size wide-character strings
wcsncpy Linux copy a fixed-size string of wide characters
wcsncasecmp Linux compare two fixed-size wide-character strings, ignoring case
wcpncpy Linux copy a fixed-size string of wide characters, returning a pointer to its end
wcslen Tru64 Find length of wide-character string
stpncpy Linux copy a fixed-size string, returning a pointer to its end
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service