1TOWUPPER(3P) POSIX Programmer's Manual TOWUPPER(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 towupper - transliterate lowercase wide-character code to uppercase
13
15 #include <wctype.h>
16
17 wint_t towupper(wint_t wc);
18
19
21 The towupper() function has as a domain a type wint_t, the value of
22 which the application shall ensure is a character representable as a
23 wchar_t, and a wide-character code corresponding to a valid character
24 in the current locale or the value of WEOF. If the argument has any
25 other value, the behavior is undefined. If the argument of towupper()
26 represents a lowercase wide-character code, and there exists a corre‐
27 sponding uppercase wide-character code (as defined by character type
28 information in the program locale category LC_CTYPE ), the result shall
29 be the corresponding uppercase wide-character code. All other argu‐
30 ments in the domain are returned unchanged.
31
33 Upon successful completion, towupper() shall return the uppercase let‐
34 ter corresponding to the argument passed. Otherwise, it shall return
35 the argument unchanged.
36
38 No errors are defined.
39
40 The following sections are informative.
41
43 None.
44
46 None.
47
49 None.
50
52 None.
53
55 setlocale(), the Base Definitions volume of IEEE Std 1003.1-2001, Chap‐
56 ter 7, Locale, <wctype.h>, <wchar.h>
57
59 Portions of this text are reprinted and reproduced in electronic form
60 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
61 -- Portable Operating System Interface (POSIX), The Open Group Base
62 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
63 Electrical and Electronics Engineers, Inc and The Open Group. In the
64 event of any discrepancy between this version and the original IEEE and
65 The Open Group Standard, the original IEEE and The Open Group Standard
66 is the referee document. The original Standard can be obtained online
67 at http://www.opengroup.org/unix/online.html .
68
69
70
71IEEE/The Open Group 2003 TOWUPPER(3P)