]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/towupper.3
wcrtomb.3, wcsnrtombs.3, wcsrtombs.3, wcstombs.3, wctomb.3: SEE ALSO: add various...
[thirdparty/man-pages.git] / man3 / towupper.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
89e3ffe9 3.\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
fea681da
MK
4.\" This is free documentation; you can redistribute it and/or
5.\" modify it under the terms of the GNU General Public License as
6.\" published by the Free Software Foundation; either version 2 of
7.\" the License, or (at your option) any later version.
fe382ebf 8.\" %%%LICENSE_END
fea681da
MK
9.\"
10.\" References consulted:
11.\" GNU glibc-2 source code and manual
12.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 13.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
14.\" ISO/IEC 9899:1999
15.\"
e4ecdf36 16.TH TOWUPPER 3 2014-01-22 "GNU" "Linux Programmer's Manual"
fea681da
MK
17.SH NAME
18towupper \- convert a wide character to uppercase
19.SH SYNOPSIS
20.nf
21.B #include <wctype.h>
22.sp
23.BI "wint_t towupper(wint_t " wc );
24.fi
25.SH DESCRIPTION
60a90ecd
MK
26The
27.BR towupper ()
28function is the wide-character equivalent of the
29.BR toupper (3)
30function.
35cfd378
MK
31If
32.I wc
33is a wide character, it is converted to
c13182ef
MK
34uppercase.
35Characters which do not have case are returned unchanged.
35cfd378 36If
51700fd7 37.IR wc
35cfd378
MK
38is
39.BR WEOF ,
40.B WEOF
41is returned.
47297adb 42.SH RETURN VALUE
60a90ecd
MK
43The
44.BR towupper ()
35cfd378
MK
45function returns the uppercase equivalent of
46.IR wc ,
47or
51700fd7 48.BR WEOF
35cfd378
MK
49if
50.I wc
51is
52.BR WEOF .
c15158e2
PH
53.SH ATTRIBUTES
54.SS Multithreading (see pthreads(7))
55The
56.BR towupper ()
57function is thread-safe with exceptions.
58It can be safely used in multithreaded applications, as long as
59.BR setlocale (3)
e4ecdf36 60is not called to change the locale during its execution.
47297adb 61.SH CONFORMING TO
68e1685c 62C99.
fea681da 63.SH NOTES
d9bfdb9c 64The behavior of
60a90ecd 65.BR towupper ()
1274071a
MK
66depends on the
67.B LC_CTYPE
68category of the
fea681da
MK
69current locale.
70.PP
71This function is not very appropriate for dealing with Unicode characters,
72because Unicode knows about three cases: upper, lower and title case.
47297adb 73.SH SEE ALSO
e37e3282
MK
74.BR iswupper (3),
75.BR towctrans (3),
76.BR towlower (3)