OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [sparc/] [solaris/] [ctype.h] - Blame information for rev 160

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
#ifndef __CTYPE
2
#define __CTYPE
3
 
4
extern int isalnum(int);
5
extern int isalpha(int);
6
extern int iscntrl(int);
7
extern int isdigit(int);
8
extern int isgraph(int);
9
extern int islower(int);
10
extern int isprint(int);
11
extern int ispunct(int);
12
extern int isspace(int);
13
extern int isupper(int);
14
extern int isxdigit(int);
15
extern int tolower(int);
16
extern int toupper(int);
17
 
18
#define __U     01
19
#define __L     02
20
#define __N     04
21
#define __S     010
22
#define __P     020
23
#define __C     040
24
#define _U      01
25
#define _L      02
26
#define _N      04
27
#define _S      010
28
#define _P      020
29
#define _C      040
30
#define _B      0100
31
#define _X      0200
32
 
33
extern unsigned char __ctype[];
34
#define isalpha(c)      ((__ctype + 1)[c] & (_U | _L))
35
#define isupper(c)      ((__ctype + 1)[c] & _U)
36
#define islower(c)      ((__ctype + 1)[c] & _L)
37
#define isdigit(c)      ((__ctype + 1)[c] & _N)
38
#define isxdigit(c)     ((__ctype + 1)[c] & _X)
39
#define isalnum(c)      ((__ctype + 1)[c] & (_U | _L | _N))
40
#define isspace(c)      ((__ctype + 1)[c] & _S)
41
#define ispunct(c)      ((__ctype + 1)[c] & _P)
42
#define isprint(c)      ((__ctype + 1)[c] & (_P | _U | _L | _N | _B))
43
#define isgraph(c)      ((__ctype + 1)[c] & (_P | _U | _L | _N))
44
#define iscntrl(c)      ((__ctype + 1)[c] & _C)
45
 
46
#endif /* __CTYPE */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.