Manual Page Result
0
Command: wcscmp | Section: 3 | Source: OpenBSD | File: wcscmp.3
WCSCMP(3) FreeBSD Library Functions Manual WCSCMP(3)
NAME
wcscmp, wcsncmp - compare wide strings
SYNOPSIS
#include <wchar.h>
int
wcscmp(const wchar_t *s1, const wchar_t *s2);
int
wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t len);
DESCRIPTION
The wcscmp() and wcsncmp() functions lexicographically compare the wide
strings s1 and s2. The wcsncmp() function compares at most len wide
characters.
RETURN VALUES
The wcscmp() and wcsncmp() functions return an integer greater than,
equal to, or less than 0, according to whether the wide string s1 is
greater than, equal to, or less than the wide string s2.
SEE ALSO
strcmp(3), wcscasecmp(3), wmemcmp(3)
STANDARDS
The wcscmp() and wcsncmp() functions conform to ISO/IEC 9899:1999
("ISO C99") and were first introduced in ISO/IEC 9899/AMD1:1995
("ISO C90, Amendment 1").
HISTORY
The wcscmp() and wcsncmp() functions were ported from NetBSD and first
appeared in OpenBSD 3.8.
FreeBSD 14.1-RELEASE-p8 June 5, 2013 FreeBSD 14.1-RELEASE-p8