]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wcsncasecmp.3
ffix
[thirdparty/man-pages.git] / man3 / wcsncasecmp.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
3.\" This is free documentation; you can redistribute it and/or
4.\" modify it under the terms of the GNU General Public License as
5.\" published by the Free Software Foundation; either version 2 of
6.\" the License, or (at your option) any later version.
7.\"
8.\" References consulted:
9.\" GNU glibc-2 source code and manual
10.\" Dinkumware C library reference http://www.dinkumware.com/
11.\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
12.\"
13.TH WCSNCASECMP 3 1999-07-25 "GNU" "Linux Programmer's Manual"
14.SH NAME
15wcsncasecmp \- compare two fixed-size wide-character strings, ignoring case
16.SH SYNOPSIS
17.nf
18.B #include <wchar.h>
19.sp
20.BI "int wcsncasecmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
21.fi
22.SH DESCRIPTION
60a90ecd
MK
23The
24.BR wcsncasecmp ()
25function is the wide-character equivalent of the
26.BR strncasecmp (3)
27function.
c13182ef
MK
28It compares the wide-character string pointed to
29by \fIs1\fP and the wide-character string
30pointed to by \fIs2\fP, but at most
fea681da 31\fIn\fP wide characters from each string, ignoring case differences
60a90ecd
MK
32.RB ( towupper (3),
33.BR towlower (3)).
fea681da 34.SH "RETURN VALUE"
60a90ecd
MK
35The
36.BR wcsncasecmp ()
37function returns zero
c13182ef
MK
38if the wide-character strings at
39\fIs1\fP and \fIs2\fP,
40truncated to at most length \fIn\fP, are equal except
41for case distinctions.
42It returns a positive integer if truncated \fIs1\fP is
43greater than truncated \fIs2\fP, ignoring case.
44It returns a negative integer
fea681da
MK
45if truncated \fIs1\fP is smaller than truncated \fIs2\fP, ignoring case.
46.SH "CONFORMING TO"
47This function is a GNU extension.
fea681da 48.SH NOTES
d9bfdb9c 49The behavior of
60a90ecd 50.BR wcsncasecmp ()
1274071a
MK
51depends on the
52.B LC_CTYPE
53category of the
fea681da 54current locale.
e37e3282
MK
55.SH "SEE ALSO"
56.BR strncasecmp (3),
57.BR wcsncmp (3)