1 /* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #if defined(LIBC_SCCS) && !defined(lint) 9 static char sccsid[] = "@(#)ctype.c 8.1 (Berkeley) 06/04/93"; 10 #endif /* LIBC_SCCS and not lint */ 11 12 #define _U 0x01 13 #define _L 0x02 14 #define _N 0x04 15 #define _S 0x08 16 #define _P 0x10 17 #define _C 0x20 18 #define _X 0x40 19 #define _B 0x80 20 21 char __ctype[1 + 256] = { 22 0, 23 _C, _C, _C, _C, _C, _C, _C, _C, 24 _C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C, 25 _C, _C, _C, _C, _C, _C, _C, _C, 26 _C, _C, _C, _C, _C, _C, _C, _C, 27 _S|_B, _P, _P, _P, _P, _P, _P, _P, 28 _P, _P, _P, _P, _P, _P, _P, _P, 29 _N, _N, _N, _N, _N, _N, _N, _N, 30 _N, _N, _P, _P, _P, _P, _P, _P, 31 _P, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U, 32 _U, _U, _U, _U, _U, _U, _U, _U, 33 _U, _U, _U, _U, _U, _U, _U, _U, 34 _U, _U, _U, _P, _P, _P, _P, _P, 35 _P, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L, 36 _L, _L, _L, _L, _L, _L, _L, _L, 37 _L, _L, _L, _L, _L, _L, _L, _L, 38 _L, _L, _L, _P, _P, _P, _P, _C 39 }; 40 41 char *_ctype_ = __ctype; /* Backward compatibility. */ 42