xref: /original-bsd/lib/libc/locale/ctype.c (revision 86c99e39)
1 /*
2  * Copyright (c) 1989 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #if defined(LIBC_SCCS) && !defined(lint)
9 static char sccsid[] = "@(#)ctype.c	5.8 (Berkeley) 03/15/92";
10 #endif /* LIBC_SCCS and not lint */
11 
12 #include <ctype.h>
13 
14 char *_ctype_ = __ctype;		/* Backward compatibility. */
15 
16 char __ctype[1 + 256] = {
17 	0,
18 	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
19 	_C,	_C|_S,	_C|_S,	_C|_S,	_C|_S,	_C|_S,	_C,	_C,
20 	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
21 	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
22 	_S|_B,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
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 };
35