X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrtok.c;h=69c2d683d7b1b0f871928011ac46d843565800c7;hb=c5c4350d2beb1ebe93f3f6d45643a64eed2a7c7a;hp=691c640cac060bf4cbc16ed79adc660ff21bde2b;hpb=ebeb585aade62e51dc7b7ddd5de66473f81febfd;p=pdclib diff --git a/functions/string/strtok.c b/functions/string/strtok.c index 691c640..69c2d68 100644 --- a/functions/string/strtok.c +++ b/functions/string/strtok.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* strtok( char *, const char * ) This file is part of the Public Domain C Library (PDCLib). @@ -68,13 +66,15 @@ char * strtok( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 ) } /* parsed to end of string */ - return ( tmp = NULL ); + tmp = NULL; + return s1; } #endif #ifdef TEST -#include <_PDCLIB_test.h> + +#include "_PDCLIB_test.h" int main( void ) { @@ -103,4 +103,5 @@ int main( void ) TESTCASE( strtok( NULL, "_" ) == NULL ); return TEST_RESULTS; } + #endif