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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [eco32/] [linux/] [ctype.h] - Blame information for rev 5

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 __B     0100
25
#define __X     0200
26
 
27
extern unsigned char _ctype[];
28
#define isalnum(c)      ((_ctype+1)[c]&(__U|__L|__N))
29
#define isalpha(c)      ((_ctype+1)[c]&(__U|__L))
30
#define iscntrl(c)      ((_ctype+1)[c]&__C)
31
#define isdigit(c)      ((_ctype+1)[c]&__N)
32
#define isgraph(c)      ((_ctype+1)[c]&(__P|__U|__L|__N))
33
#define islower(c)      ((_ctype+1)[c]&__L)
34
#define isprint(c)      ((_ctype+1)[c]&(__P|__U|__L|__N|__B))
35
#define ispunct(c)      ((_ctype+1)[c]&__P)
36
#define isspace(c)      ((_ctype+1)[c]&__S)
37
#define isupper(c)      ((_ctype+1)[c]&__U)
38
#define isxdigit(c)     ((_ctype+1)[c]&__X)
39
 
40
#endif /* __CTYPE */

powered by: WebSVN 2.1.0

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