Subversion Repositories Kolibri OS

Rev

Rev 4874 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4349 Serge 1
 
2
FUNCTION
3
<>---lowercase character predicate
4
5
 
6
islower
7
8
 
9
#include 
10
int islower(int <[c]>);
11
12
 
13
#include 
14
int islower(<[c]>);
15
16
 
17
<> is a macro which classifies ASCII integer values by table
18
lookup.  It is a predicate returning non-zero for minuscules
19
(lowercase alphabetic characters), and 0 for other characters.
20
It is defined only if <[c]> is representable as an unsigned char or if
4921 Serge 21
<[c]> is EOF.
22
4349 Serge 23
 
24
undefining the macro using `<<#undef islower>>'.
25
26
 
27
<> returns non-zero if <[c]> is a lowercase letter (<>--<>).
28
29
 
30
<> is ANSI C.
31
32
 
33
*/
34
#include <_ansi.h>
35
#include 
36
37
 
38
int
39
_DEFUN(islower,(c),int c)
40
{
41
	return ((__ctype_ptr__[c+1] & (_U|_L)) == _L);
42
}
43