]> pd.if.org Git - pdclib/blobdiff - functions/string/strtok.c
Added dummy test drivers to each *.c file, and target 'test' to Makefile.
[pdclib] / functions / string / strtok.c
index 4d371afe29b0a6f392f4d5540b65a09e74c58e05..9daf329351115309ddcc83822dac52d83176c0a0 100644 (file)
@@ -8,6 +8,7 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
+#include <_PDCLIB_aux.h>
 #include <string.h>
 
 char * strtok( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
@@ -73,3 +74,10 @@ char * strtok( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
 }
 
 #warning Test driver missing.
+
+#ifdef TEST
+int main()
+{
+    return 0;
+}
+#endif