Grid Community Toolkit
6.2.1629922860 (tag: v6.2.20210826)
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
gsi_openssh
source
openbsd-compat
charclass.h
1
/*
2
* Public domain, 2008, Todd C. Miller <
[email protected]
>
3
*
4
* $OpenBSD: charclass.h,v 1.1 2008/10/01 23:04:13 millert Exp $
5
*/
6
7
/* OPENBSD ORIGINAL: lib/libc/gen/charclass.h */
8
9
/*
10
* POSIX character class support for fnmatch() and glob().
11
*/
12
static
struct
cclass {
13
const
char
*name;
14
int (*isctype)(int);
15
} cclasses[] = {
16
{
"alnum"
, isalnum },
17
{
"alpha"
, isalpha },
18
{
"blank"
, isblank },
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 }
29
};
30
31
#define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)
Generated by
1.8.5