Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1693 | serge | 1 | |
2 | FUNCTION |
||
3 | < |
||
4 | |||
5 | |||
6 | iscntrl |
||
7 | |||
8 | |||
9 | #include |
||
10 | int iscntrl(int <[c]>); |
||
11 | |||
12 | |||
13 | #include |
||
14 | int iscntrl(<[c]>); |
||
15 | |||
16 | |||
17 | < |
||
18 | lookup. It is a predicate returning non-zero for control characters, and 0 |
||
19 | for other characters. It is defined only when < |
||
20 | true or <[c]> is EOF. |
||
21 | |||
22 | |||
23 | undefining the macro using `<<#undef iscntrl>>'. |
||
24 | |||
25 | |||
26 | < |
||
27 | control character (<<0x7F>> or <<0x00>>--<<0x1F>>). |
||
28 | |||
29 | |||
30 | < |
||
31 | |||
32 | |||
33 | */ |
||
34 | |||
35 | |||
36 | #include |
||
37 | |||
38 | |||
39 | |||
40 | |||
41 | int |
||
42 | _DEFUN(iscntrl,(c),int c) |
||
43 | { |
||
44 | return(__ctype_ptr__[c+1] & _C); |
||
45 | } |
||
46 |