about summary refs log tree commit diff
path: root/string/strncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strncpy.c')
-rw-r--r--string/strncpy.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/string/strncpy.c b/string/strncpy.c
index f32612e1cf..2274d7d31e 100644
--- a/string/strncpy.c
+++ b/string/strncpy.c
@@ -21,11 +21,12 @@
 
 #undef strncpy
 
+#ifndef STRNCPY
+#define STRNCPY strncpy
+#endif
+
 char *
-strncpy (s1, s2, n)
-     char *s1;
-     const char *s2;
-     size_t n;
+STRNCPY (char *s1, const char *s2, size_t n)
 {
   reg_char c;
   char *s = s1;