projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Porting current working set from CVS.
[fw/pdclib]
/
functions
/
string
/
memcmp.c
diff --git
a/functions/string/memcmp.c
b/functions/string/memcmp.c
index 167355f82a2f4255d7aa0cd08d27d49ac2338459..2997694de4d40f73a90f74857f147ac96b4572a4 100644
(file)
--- a/
functions/string/memcmp.c
+++ b/
functions/string/memcmp.c
@@
-33,10
+33,9
@@
int memcmp( const void * s1, const void * s2, size_t n )
#ifdef TEST
#include <_PDCLIB_test.h>
-int main()
+int main(
void
)
{
char const xxxxx[] = "xxxxx";
- BEGIN_TESTS;
TESTCASE( memcmp( abcde, abcdx, 5 ) < 0 );
TESTCASE( memcmp( abcde, abcdx, 4 ) == 0 );
TESTCASE( memcmp( abcde, xxxxx, 0 ) == 0 );