DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

wcsncmp(3C)


wcsncmp -- compare two wide character strings with bound

Synopsis

   #include <wchar.h>
   

int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);

Description

wcsncmp compares not more than n wide characters from the array pointed to by ws1 to the array pointed to by ws2. The function does not compare wide characters that follow a null wide character.

Return values

wcsncmp compares its arguments and returns an integer less than, equal to, or greater than zero, depending on whether the wide string ws1 is less than, equal to, or greater than the wide string ws2. The null wide character compares less than any other wide character.

References

wchar(5), wcscmp(3C)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004