summaryrefslogtreecommitdiff
path: root/wcsmbs/wcsncpy.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 19:21:56 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 19:21:56 +0200
commit525c181a5a9a95e24d2111b7792608151a40eb84 (patch)
tree8ba16eeb3fb7327e5c3c5bba9c5786d4bb6ccec1 /wcsmbs/wcsncpy.c
parent4dd9e35bfd35d3138bc44169baba098005bad51e (diff)
parent7bb5f8a836b916d6ebf7b6921b136e99cea2442d (diff)
Merge commit 'refs/top-bases/t/bigmem' into t/bigmem
Diffstat (limited to 'wcsmbs/wcsncpy.c')
-rw-r--r--wcsmbs/wcsncpy.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/wcsmbs/wcsncpy.c b/wcsmbs/wcsncpy.c
index 7016f41e71..cd90024e44 100644
--- a/wcsmbs/wcsncpy.c
+++ b/wcsmbs/wcsncpy.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
@@ -18,13 +18,13 @@
#include <wchar.h>
+#ifdef WCSNCPY
+# define __wcsncpy WCSNCPY
+#endif
/* Copy no more than N wide-characters of SRC to DEST. */
wchar_t *
-__wcsncpy (dest, src, n)
- wchar_t *dest;
- const wchar_t *src;
- size_t n;
+__wcsncpy (wchar_t *dest, const wchar_t *src, size_t n)
{
wint_t c;
wchar_t *const s = dest;
@@ -83,4 +83,6 @@ __wcsncpy (dest, src, n)
return s;
}
+#ifndef WCSNCPY
weak_alias (__wcsncpy, wcsncpy)
+#endif