Rev 4874 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4349 | Serge | 1 | |
2 | FUNCTION |
||
3 | < |
||
4 | |||
5 | |||
6 | isxdigit |
||
7 | |||
8 | |||
9 | #include |
||
10 | int isxdigit(int <[c]>); |
||
11 | |||
12 | |||
13 | #include |
||
14 | int isxdigit(int <[c]>); |
||
15 | |||
16 | |||
17 | < |
||
18 | lookup. It is a predicate returning non-zero for hexadecimal digits, |
||
19 | and <<0>> for other characters. It is defined only if <[c]> is |
||
4921 | Serge | 20 | representable as an unsigned char or if <[c]> is EOF. |
21 | |||
4349 | Serge | 22 | |
23 | undefining the macro using `<<#undef isxdigit>>'. |
||
24 | |||
25 | |||
26 | < |
||
27 | (<<0>>--<<9>>, <>--< |
||
28 | |||
29 | |||
30 | < |
||
31 | |||
32 | |||
33 | */ |
||
34 | #include <_ansi.h> |
||
35 | #include |
||
36 | |||
37 | |||
38 | |||
39 | int |
||
40 | _DEFUN(isxdigit,(c),int c) |
||
41 | { |
||
42 | return(__ctype_ptr__[c+1] & ((_X)|(_N))); |
||
43 | } |
||
44 |