projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added #ifdef to allow regression against system lib.
[fw/pdclib]
/
functions
/
string
/
strncpy.c
diff --git
a/functions/string/strncpy.c
b/functions/string/strncpy.c
index 31602ec8a9fef4709ce87b2904c821fb6256d2f4..ea88d3f8a6648d41fca4fc341625c3bcb503496c 100644
(file)
--- a/
functions/string/strncpy.c
+++ b/
functions/string/strncpy.c
@@
-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>