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

NAME

6       islower - test for a lowercase letter
7

SYNOPSIS

9       #include <ctype.h>
10
11       int islower(int c);
12
13

DESCRIPTION

15       The  islower()  function  shall  test whether c is a character of class
16       lower in the program's current locale; see the Base Definitions  volume
17       of IEEE Std 1003.1-2001, Chapter 7, Locale.
18
19       The  c  argument  is  an  int, the value of which the application shall
20       ensure is a character representable as an unsigned char or equal to the
21       value of the macro EOF. If the argument has any other value, the behav‐
22       ior is undefined.
23

RETURN VALUE

25       The islower() function shall return non-zero if c is a  lowercase  let‐
26       ter; otherwise, it shall return 0.
27

ERRORS

29       No errors are defined.
30
31       The following sections are informative.
32

EXAMPLES

34   Testing for a Lowercase Letter
35       The  following  example  tests whether the value is a lowercase letter,
36       based on the locale of the user, then uses it as part of a key value.
37
38
39              #include <ctype.h>
40              #include <stdlib.h>
41              #include <locale.h>
42              ...
43              char *keystr;
44              int elementlen, len;
45              char c;
46              ...
47              setlocale(LC_ALL, "");
48              ...
49              len = 0;
50              while (len < elementlen) {
51                  c = (char) (rand() % 256);
52              ...
53                  if (islower(c))
54                      keystr[len++] = c;
55                  }
56              ...
57

APPLICATION USAGE

59       To ensure applications  portability,  especially  across  natural  lan‐
60       guages,  only  this  function  and those listed in the SEE ALSO section
61       should be used for character classification.
62

RATIONALE

64       None.
65

FUTURE DIRECTIONS

67       None.
68

SEE ALSO

70       isalnum() , isalpha() , iscntrl() , isdigit() , isgraph() , isprint() ,
71       ispunct() , isspace() , isupper() , isxdigit() , setlocale() , the Base
72       Definitions  volume  of  IEEE Std 1003.1-2001,   Chapter   7,   Locale,
73       <ctype.h>
74
76       Portions  of  this text are reprinted and reproduced in electronic form
77       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
78       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
79       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
80       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
81       event of any discrepancy between this version and the original IEEE and
82       The  Open Group Standard, the original IEEE and The Open Group Standard
83       is the referee document. The original Standard can be  obtained  online
84       at http://www.opengroup.org/unix/online.html .
85
86
87
88IEEE/The Open Group                  2003                           ISLOWER(P)
Impressum