1TOLOWER(3P)                POSIX Programmer's Manual               TOLOWER(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       tolower, tolower_l — transliterate uppercase characters to lowercase
14

SYNOPSIS

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

DESCRIPTION

22       For tolower(): 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  tolower()  and  tolower_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. If
30       the argument of tolower() or tolower_l() represents an  uppercase  let‐
31       ter,  and  there  exists a corresponding lowercase letter as defined by
32       character type information in the current locale or in the locale  rep‐
33       resented  by locale, respectively (category LC_CTYPE), the result shall
34       be the corresponding lowercase  letter.  All  other  arguments  in  the
35       domain are returned unchanged.
36
37       The  behavior is undefined if the locale argument to tolower_l() is the
38       special locale object LC_GLOBAL_LOCALE or is not a valid locale  object
39       handle.
40

RETURN VALUE

42       Upon  successful  completion,  the  tolower() and tolower_l() functions
43       shall return the lowercase letter corresponding to the argument passed;
44       otherwise, they shall return the argument unchanged.
45

ERRORS

47       No errors are defined.
48
49       The following sections are informative.
50

EXAMPLES

52       None.
53

APPLICATION USAGE

55       None.
56

RATIONALE

58       None.
59

FUTURE DIRECTIONS

61       None.
62

SEE ALSO

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