]> pd.if.org Git - pdclib/blobdiff - functions/string/strncpy.c
Added dummy test drivers to each *.c file, and target 'test' to Makefile.
[pdclib] / functions / string / strncpy.c
index aafb7040a79c958683b2553aef54bcd1fc5968eb..b47be758b056c5ff5bcf0e0f8c67f0cc4bdbbbbc 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 * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n )
@@ -28,3 +29,10 @@ char * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, si
 }
 
 #warning Test driver missing.
+
+#ifdef TEST
+int main()
+{
+    return 0;
+}
+#endif