]> pd.if.org Git - pdclib/blobdiff - functions/string/strncpy.c
Added #ifdef to allow regression against system lib.
[pdclib] / functions / string / strncpy.c
index 31602ec8a9fef4709ce87b2904c821fb6256d2f4..ea88d3f8a6648d41fca4fc341625c3bcb503496c 100644 (file)
@@ -11,6 +11,8 @@
 #include <_PDCLIB_aux.h>
 #include <string.h>
 
+#ifndef REGTEST
+
 char * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n )
 {
     char * rc = s1;
@@ -28,6 +30,8 @@ char * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, si
     return rc;
 }
 
+#endif
+
 #ifdef TEST
 #include <_PDCLIB_test.h>