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
muimaster.library: migrate event handling from Listview to List
[AROS.git]
/
test
/
clib
/
ctype.c
blob
6fa4ab70296f05819d8115a7fa2765b6e6382ba4
1
/*
2
Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3
$Id$
4
*/
5
6
#include <ctype.h>
7
#include <stdio.h>
8
9
#include
"test.h"
10
11
int
main
(
void
)
12
{
13
char
c
;
14
15
c
=
'1'
;
16
TEST
(
isdigit
(
c
));
17
TEST
(!
isalpha
(
c
));
18
TEST
(
isalnum
(
c
));
19
c
=
'a'
;
20
TEST
(!
isdigit
(
c
));
21
TEST
(
isalpha
(
c
));
22
TEST
(
isalnum
(
c
));
23
c
=
'.'
;
24
TEST
(!
isdigit
(
c
));
25
TEST
(!
isalpha
(
c
));
26
TEST
(!
isalnum
(
c
));
27
TEST
(
toupper
(
'a'
) ==
'A'
);
28
TEST
(
toupper
(
'A'
) ==
'A'
);
29
TEST
(
tolower
(
'Z'
) ==
'z'
);
30
TEST
(
tolower
(
'z'
) ==
'z'
);
31
32
return
0
;
33
}
34
35
void
cleanup
(
void
) {}