Rev 4874 | Only display areas with differences | Regard 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 | isalnum |
6 | isalnum |
7 | 7 | ||
8 | ANSI_SYNOPSIS |
8 | ANSI_SYNOPSIS |
9 | #include |
9 | #include |
10 | int isalnum(int <[c]>); |
10 | int isalnum(int <[c]>); |
11 | 11 | ||
12 | TRAD_SYNOPSIS |
12 | TRAD_SYNOPSIS |
13 | #include |
13 | #include |
14 | int isalnum(<[c]>); |
14 | int isalnum(<[c]>); |
15 | 15 | ||
16 | 16 | ||
17 | DESCRIPTION |
17 | DESCRIPTION |
18 | < |
18 | < |
19 | lookup. It is a predicate returning non-zero for alphabetic or |
19 | lookup. It is a predicate returning non-zero for alphabetic or |
20 | numeric ASCII characters, and <<0>> for other arguments. It is defined |
20 | numeric ASCII characters, and <<0>> for other arguments. It is defined |
21 | for all integer values. |
21 | only if <[c]> is representable as an unsigned char or if <[c]> is EOF. |
22 | 22 | ||
23 | 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 |
24 | undefining the macro using `<<#undef isalnum>>'. |
24 | undefining the macro using `<<#undef isalnum>>'. |
25 | 25 | ||
26 | RETURNS |
26 | RETURNS |
27 | < |
27 | < |
28 | <>--< |
28 | <>--< |
29 | 29 | ||
30 | PORTABILITY |
30 | PORTABILITY |
31 | < |
31 | < |
32 | 32 | ||
33 | No OS subroutines are required. |
33 | No OS subroutines are required. |
34 | */ |
34 | */ |
35 | 35 | ||
36 | #include <_ansi.h> |
36 | #include <_ansi.h> |
37 | #include |
37 | #include |
38 | 38 | ||
39 | #undef isalnum |
39 | #undef isalnum |
40 | 40 | ||
41 | int |
41 | int |
42 | _DEFUN(isalnum,(c),int c) |
42 | _DEFUN(isalnum,(c),int c) |
43 | { |
43 | { |
44 | return(__ctype_ptr__[c+1] & (_U|_L|_N)); |
44 | return(__ctype_ptr__[c+1] & (_U|_L|_N)); |
45 | } |
45 | } |