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
11
13 towupper, towupper_l — transliterate lowercase wide-character code to
14 uppercase
15
17 #include <wctype.h>
18
19 wint_t towupper(wint_t wc);
20 wint_t towupper_l(wint_t wc, locale_t locale);
21
23 For towupper(): The functionality described on this reference page is
24 aligned with the ISO C standard. Any conflict between the requirements
25 described here and the ISO C standard is unintentional. This volume of
26 POSIX.1‐2008 defers to the ISO C standard.
27
28 The towupper() and towupper_l() functions have as a domain a type
29 wint_t, the value of which the application shall ensure is a character
30 representable as a wchar_t, and a wide-character code corresponding to
31 a valid character in the current locale or the value of WEOF. If the
32 argument has any other value, the behavior is undefined. If the argu‐
33 ment of towupper() or towupper_l() represents a lowercase wide-charac‐
34 ter code, and there exists a corresponding uppercase wide-character
35 code as defined by character type information in the current locale or
36 in the locale represented by locale, respectively (category LC_CTYPE),
37 the result shall be the corresponding uppercase wide-character code.
38 All other arguments in the domain are returned unchanged.
39
40 The behavior is undefined if the locale argument to towupper_l() is the
41 special locale object LC_GLOBAL_LOCALE or is not a valid locale object
42 handle.
43
45 Upon successful completion, the towupper() and towupper_l() functions
46 shall return the uppercase letter corresponding to the argument passed.
47 Otherwise, they shall return the argument unchanged.
48
50 No errors are defined.
51
52 The following sections are informative.
53
55 None.
56
58 None.
59
61 None.
62
64 None.
65
67 setlocale(), uselocale()
68
69 The Base Definitions volume of POSIX.1‐2008, Chapter 7, Locale,
70 <locale.h>, <wctype.h>
71
73 Portions of this text are reprinted and reproduced in electronic form
74 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
75 -- Portable Operating System Interface (POSIX), The Open Group Base
76 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
77 cal and Electronics Engineers, Inc and The Open Group. (This is
78 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
79 event of any discrepancy between this version and the original IEEE and
80 The Open Group Standard, the original IEEE and The Open Group Standard
81 is the referee document. The original Standard can be obtained online
82 at http://www.unix.org/online.html .
83
84 Any typographical or formatting errors that appear in this page are
85 most likely to have been introduced during the conversion of the source
86 files to man page format. To report such errors, see https://www.ker‐
87 nel.org/doc/man-pages/reporting_bugs.html .
88
89
90
91IEEE/The Open Group 2013 TOWUPPER(3P)