X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrspn.c;h=a546e94f45ce9cd6c0e74e5b828b3472eb314788;hb=d9dcf16664c81809258992e1653ecb68c8079974;hp=ed9b8b149fe51fb87094b44836113584517a37cc;hpb=d18abec50882ca919a52ffc54b2b5c8703cb2864;p=pdclib.old diff --git a/functions/string/strspn.c b/functions/string/strspn.c index ed9b8b1..a546e94 100644 --- a/functions/string/strspn.c +++ b/functions/string/strspn.c @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* strspn( const char *, const char * ) This file is part of the Public Domain C Library (PDCLib). @@ -41,9 +39,8 @@ size_t strspn( const char * s1, const char * s2 ) #ifdef TEST #include <_PDCLIB_test.h> -int main() +int main( void ) { - BEGIN_TESTS; TESTCASE( strspn( abcde, "abc" ) == 3 ); TESTCASE( strspn( abcde, "b" ) == 0 ); TESTCASE( strspn( abcde, abcde ) == 5 );