1TOUPPER(3P)                POSIX Programmer's Manual               TOUPPER(3P)
2
3
4

PROLOG

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

NAME

13       toupper, toupper_l — transliterate lowercase characters to uppercase
14

SYNOPSIS

16       #include <ctype.h>
17
18       int toupper(int c);
19       int toupper_l(int c, locale_t locale);
20

DESCRIPTION

22       For toupper(): The functionality described on this  reference  page  is
23       aligned  with the ISO C standard. Any conflict between the requirements
24       described here and the ISO C standard is unintentional. This volume  of
25       POSIX.1‐2008 defers to the ISO C standard.
26
27       The  toupper()  and  toupper_l() functions have as a domain a type int,
28       the value of which is representable as an unsigned char or the value of
29       EOF. If the argument has any other value, the behavior is undefined.
30
31       If the argument of toupper() or toupper_l() represents a lowercase let‐
32       ter, and there exists a corresponding uppercase letter  as  defined  by
33       character  type information in the current locale or in the locale rep‐
34       resented by locale, respectively (category LC_CTYPE), the result  shall
35       be the corresponding uppercase letter.
36
37       All other arguments in the domain are returned unchanged.
38
39       The  behavior is undefined if the locale argument to toupper_l() is the
40       special locale object LC_GLOBAL_LOCALE or is not a valid locale  object
41       handle.
42

RETURN VALUE

44       Upon  successful completion, toupper() and toupper_l() shall return the
45       uppercase letter corresponding to the argument passed; otherwise,  they
46       shall return the argument unchanged.
47

ERRORS

49       No errors are defined.
50
51       The following sections are informative.
52

EXAMPLES

54       None.
55

APPLICATION USAGE

57       None.
58

RATIONALE

60       None.
61

FUTURE DIRECTIONS

63       None.
64

SEE ALSO

66       setlocale(), uselocale()
67
68       The  Base  Definitions  volume  of  POSIX.1‐2008,  Chapter  7,  Locale,
69       <ctype.h>, <locale.h>
70
72       Portions of this text are reprinted and reproduced in  electronic  form
73       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
74       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
75       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
76       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
77       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
78       event of any discrepancy between this version and the original IEEE and
79       The  Open Group Standard, the original IEEE and The Open Group Standard
80       is the referee document. The original Standard can be  obtained  online
81       at http://www.unix.org/online.html .
82
83       Any  typographical  or  formatting  errors that appear in this page are
84       most likely to have been introduced during the conversion of the source
85       files  to  man page format. To report such errors, see https://www.ker
86       nel.org/doc/man-pages/reporting_bugs.html .
87
88
89
90IEEE/The Open Group                  2013                          TOUPPER(3P)
Impressum