1 /* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. 9 * 10 * %sccs.include.redist.c% 11 */ 12 13 #if defined(LIBC_SCCS) && !defined(lint) 14 static char sccsid[] = "@(#)ctype.c 8.2 (Berkeley) 01/21/94"; 15 #endif /* LIBC_SCCS and not lint */ 16 17 #define _U 0x01 18 #define _L 0x02 19 #define _N 0x04 20 #define _S 0x08 21 #define _P 0x10 22 #define _C 0x20 23 #define _X 0x40 24 #define _B 0x80 25 26 char __ctype[1 + 256] = { 27 0, 28 _C, _C, _C, _C, _C, _C, _C, _C, 29 _C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C, 30 _C, _C, _C, _C, _C, _C, _C, _C, 31 _C, _C, _C, _C, _C, _C, _C, _C, 32 _S|_B, _P, _P, _P, _P, _P, _P, _P, 33 _P, _P, _P, _P, _P, _P, _P, _P, 34 _N, _N, _N, _N, _N, _N, _N, _N, 35 _N, _N, _P, _P, _P, _P, _P, _P, 36 _P, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U|_X, _U, 37 _U, _U, _U, _U, _U, _U, _U, _U, 38 _U, _U, _U, _U, _U, _U, _U, _U, 39 _U, _U, _U, _P, _P, _P, _P, _P, 40 _P, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L, 41 _L, _L, _L, _L, _L, _L, _L, _L, 42 _L, _L, _L, _L, _L, _L, _L, _L, 43 _L, _L, _L, _P, _P, _P, _P, _C 44 }; 45 46 char *_ctype_ = __ctype; /* Backward compatibility. */ 47