Commit | Line | Data |
---|---|---|
ab9e3021 KB |
1 | /* |
2 | * Copyright (c) 1989 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
269a7923 | 5 | * %sccs.include.redist.c% |
ab9e3021 KB |
6 | */ |
7 | ||
2ce81398 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
b91e6e74 | 9 | static char sccsid[] = "@(#)ctype.c 5.8 (Berkeley) %G%"; |
ab9e3021 | 10 | #endif /* LIBC_SCCS and not lint */ |
b8f253e8 | 11 | |
ab9e3021 | 12 | #include <ctype.h> |
e024f933 | 13 | |
b91e6e74 KB |
14 | char *_ctype_ = __ctype; /* Backward compatibility. */ |
15 | ||
aef3f94a | 16 | char __ctype[1 + 256] = { |
e024f933 BJ |
17 | 0, |
18 | _C, _C, _C, _C, _C, _C, _C, _C, | |
c3c69938 | 19 | _C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C, |
e024f933 BJ |
20 | _C, _C, _C, _C, _C, _C, _C, _C, |
21 | _C, _C, _C, _C, _C, _C, _C, _C, | |
8d4052ee | 22 | _S|_B, _P, _P, _P, _P, _P, _P, _P, |
e024f933 BJ |
23 | _P, _P, _P, _P, _P, _P, _P, _P, |
24 | _N, _N, _N, _N, _N, _N, _N, _N, | |
25 | _N, _N, _P, _P, _P, _P, _P, _P, | |
26 | _P, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U, | |
27 | _U, _U, _U, _U, _U, _U, _U, _U, | |
28 | _U, _U, _U, _U, _U, _U, _U, _U, | |
29 | _U, _U, _U, _P, _P, _P, _P, _P, | |
30 | _P, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L, | |
31 | _L, _L, _L, _L, _L, _L, _L, _L, | |
32 | _L, _L, _L, _L, _L, _L, _L, _L, | |
33 | _L, _L, _L, _P, _P, _P, _P, _C | |
34 | }; |