Rev 4874 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4874 | Rev 4921 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | FUNCTION |
2 | FUNCTION |
3 | < |
3 | < |
4 | 4 | ||
5 | INDEX |
5 | INDEX |
6 | islower |
6 | islower |
7 | 7 | ||
8 | ANSI_SYNOPSIS |
8 | ANSI_SYNOPSIS |
9 | #include |
9 | #include |
10 | int islower(int <[c]>); |
10 | int islower(int <[c]>); |
11 | 11 | ||
12 | TRAD_SYNOPSIS |
12 | TRAD_SYNOPSIS |
13 | #include |
13 | #include |
14 | int islower(<[c]>); |
14 | int islower(<[c]>); |
15 | 15 | ||
16 | DESCRIPTION |
16 | DESCRIPTION |
17 | < |
17 | < |
18 | lookup. It is a predicate returning non-zero for minuscules |
18 | lookup. It is a predicate returning non-zero for minuscules |
19 | (lowercase alphabetic characters), and 0 for other characters. |
19 | (lowercase alphabetic characters), and 0 for other characters. |
20 | It is defined only when < |
20 | It is defined only if <[c]> is representable as an unsigned char or if |
21 | 21 | <[c]> is EOF. |
|
- | 22 | ||
22 | You can use a compiled subroutine instead of the macro definition by |
23 | You can use a compiled subroutine instead of the macro definition by |
23 | undefining the macro using `<<#undef islower>>'. |
24 | undefining the macro using `<<#undef islower>>'. |
24 | 25 | ||
25 | RETURNS |
26 | RETURNS |
26 | < |
27 | < |
27 | 28 | ||
28 | PORTABILITY |
29 | PORTABILITY |
29 | < |
30 | < |
30 | 31 | ||
31 | No supporting OS subroutines are required. |
32 | No supporting OS subroutines are required. |
32 | */ |
33 | */ |
33 | #include <_ansi.h> |
34 | #include <_ansi.h> |
34 | #include |
35 | #include |
35 | 36 | ||
36 | #undef islower |
37 | #undef islower |
37 | int |
38 | int |
38 | _DEFUN(islower,(c),int c) |
39 | _DEFUN(islower,(c),int c) |
39 | { |
40 | { |
40 | return ((__ctype_ptr__[c+1] & (_U|_L)) == _L); |
41 | return ((__ctype_ptr__[c+1] & (_U|_L)) == _L); |
41 | } |
42 | } |