]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/towupper.3
Wrapped long lines, wrapped at sentence boundaries; stripped trailing
[thirdparty/man-pages.git] / man3 / towupper.3
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 .\" ISO/IEC 9899:1999
13 .\"
14 .TH TOWUPPER 3 1999-07-25 "GNU" "Linux Programmer's Manual"
15 .SH NAME
16 towupper \- convert a wide character to uppercase
17 .SH SYNOPSIS
18 .nf
19 .B #include <wctype.h>
20 .sp
21 .BI "wint_t towupper(wint_t " wc );
22 .fi
23 .SH DESCRIPTION
24 The \fBtowupper\fP() function is the wide-character equivalent of the
25 \fBtoupper\fP() function.
26 If \fIwc\fP is a wide character, it is converted to
27 uppercase.
28 Characters which do not have case are returned unchanged.
29 If \fIwc\fP is WEOF, WEOF is returned.
30 .SH "RETURN VALUE"
31 The \fBtowupper\fP() function returns the uppercase equivalent of \fIwc\fP,
32 or WEOF if \fIwc\fP is WEOF.
33 .SH "CONFORMING TO"
34 C99.
35 .SH "SEE ALSO"
36 .BR iswupper (3),
37 .BR towctrans (3),
38 .BR towlower (3)
39 .SH NOTES
40 The behaviour of \fBtowupper\fP() depends on the LC_CTYPE category of the
41 current locale.
42 .PP
43 This function is not very appropriate for dealing with Unicode characters,
44 because Unicode knows about three cases: upper, lower and title case.