secondary cache feature in vm.
[minix.git] / lib / libc / posix / charclass.h
blobc780f1658acee0dc736d56f0c7acf08ee4276124
1 /*
2 * Public domain, 2008, Todd C. Miller <Todd.Miller@courtesan.com>
4 * $OpenBSD: charclass.h,v 1.1 2008/10/01 23:04:13 millert Exp $
5 */
7 /*
8 * POSIX character class support for fnmatch() and glob().
9 */
10 static struct cclass {
11 const char *name;
12 int (*isctype)(int);
13 } cclasses[] = {
14 { "alnum", isalnum },
15 { "alpha", isalpha },
16 #ifndef _MINIX
17 { "blank", isblank },
18 #endif
19 { "cntrl", iscntrl },
20 { "digit", isdigit },
21 { "graph", isgraph },
22 { "lower", islower },
23 { "print", isprint },
24 { "punct", ispunct },
25 { "space", isspace },
26 { "upper", isupper },
27 { "xdigit", isxdigit },
28 { NULL, NULL }
31 #define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)