]> pd.if.org Git - pdclib/blobdiff - functions/string/strtok.c
Whitespace cleanups.
[pdclib] / functions / string / strtok.c
index 691c640cac060bf4cbc16ed79adc660ff21bde2b..69c2d683d7b1b0f871928011ac46d843565800c7 100644 (file)
@@ -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