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

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

WCSNCMP(3)

Contents


NAME    [Toc]    [Back]

       wcsncmp - compare two fixed-size wide-character strings

SYNOPSIS    [Toc]    [Back]

       #include <wchar.h>

       int wcsncmp (const wchar_t *s1, const wchar_t *s2, size_t n);

DESCRIPTION    [Toc]    [Back]

       The  wcsncmp  function  is the wide-character equivalent of the strncmp
       function. It compares the wide-character string pointed to  by  s1  and
       the  wide-character string pointed to by s2, but at most n wide characters
 from each string. In each string, the comparison extends  only  up
       to the first occurrence of a L'\0' character, if any.

RETURN VALUE    [Toc]    [Back]

       The  wcsncmp  function returns zero if the wide-character strings at s1
       and s2, truncated to at most length n, are equal.  It returns an  integer
 greater than zero if at the first differing position i (i < n), the
       corresponding wide-character s1[i] is greater than s2[i]. It returns an
       integer	less  than  zero if at the first differing position i (i < n),
       the corresponding wide-character s1[i] is less than s2[i].

CONFORMING TO    [Toc]    [Back]

       ISO/ANSI C, UNIX98

SEE ALSO    [Toc]    [Back]

      
      
       strncmp(3), wcsncasecmp(3)



GNU				  1999-07-25			    WCSNCMP(3)
[ Back ]
 Similar pages
Name OS Title
wcsncasecmp Linux compare two fixed-size wide-character strings, ignoring case
wcsnlen Linux determine the length of a fixed-size wide-character string
wcswidth Linux determine columns needed for a fixed-size wide character string
wcscmp Linux compare two wide-character strings
wcscasecmp Linux compare two wide-character strings, ignoring case
wcscoll Tru64 Compare wide-character strings by using collation information
wcsncpy Linux copy a fixed-size string of wide characters
wcpncpy Linux copy a fixed-size string of wide characters, returning a pointer to its end
Tie::SubstrHash IRIX Fixed-table-size, fixed-key-length hashing
wcscoll FreeBSD compare wide strings according to current collation
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service