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
/
strstr.c
diff --git
a/functions/string/strstr.c
b/functions/string/strstr.c
index 0856030f18b0c8fa02e3002e9ef3bbf7a12de489..793d38a09b29819ce8c9c8c014807b471191592a 100644
(file)
--- a/
functions/string/strstr.c
+++ b/
functions/string/strstr.c
@@
-39,10
+39,9
@@
char * strstr( const char * s1, const char * s2 )
#ifdef TEST
#include <_PDCLIB_test.h>
-int main()
+int main(
void
)
{
char s[] = "abcabcabcdabcde";
- BEGIN_TESTS;
TESTCASE( strstr( s, "x" ) == NULL );
TESTCASE( strstr( s, "xyz" ) == NULL );
TESTCASE( strstr( s, "a" ) == &s[0] );