repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Build Envy24 driver.
[AROS.git]
/
test
/
clib
/
ctype.c
blob
018c6fa6a53568ef59253eac0e7c6a05bba108e4
1
#include <ctype.h>
2
#include <stdio.h>
3
4
#include
"test.h"
5
6
int
main
(
void
)
7
{
8
char
c
;
9
10
c
=
'1'
;
11
TEST
(
isdigit
(
c
));
12
TEST
(!
isalpha
(
c
));
13
TEST
(
isalnum
(
c
));
14
c
=
'a'
;
15
TEST
(!
isdigit
(
c
));
16
TEST
(
isalpha
(
c
));
17
TEST
(
isalnum
(
c
));
18
c
=
'.'
;
19
TEST
(!
isdigit
(
c
));
20
TEST
(!
isalpha
(
c
));
21
TEST
(!
isalnum
(
c
));
22
TEST
(
toupper
(
'a'
) ==
'A'
);
23
TEST
(
toupper
(
'A'
) ==
'A'
);
24
TEST
(
tolower
(
'Z'
) ==
'z'
);
25
TEST
(
tolower
(
'z'
) ==
'z'
);
26
27
return
0
;
28
}
29
30
void
cleanup
(
void
) {}