repo.or.cz
/
tangerine.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated PCI IDs to latest snapshot.
[tangerine.git]
/
test
/
clib
/
stpblk.c
blob
f57f50fbfb4f272fddf2d75afb7d04dbe8e831e3
1
#include <stdio.h>
2
#include <string.h>
3
#include
"test.h"
4
5
int
main
()
6
{
7
char
*
hello
=
" Hello"
;
8
char
*
empty
=
" "
;
9
10
TEST
(
strcmp
(
"Hello"
,
stpblk
(
hello
) ) ==
0
);
11
TEST
(
strcmp
(
""
,
stpblk
(
empty
) ) ==
0
);
12
TEST
(
strlen
(
stpblk
(
hello
) ) ==
5
);
13
TEST
(
strlen
(
stpblk
(
empty
) ) ==
0
);
14
15
return
OK
;
16
}
17
18
void
cleanup
()
19
{
20
/* Nothing to clean up */
21
}