aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wcsnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcsnlen.c')
-rw-r--r--wcsmbs/wcsnlen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wcsmbs/wcsnlen.c b/wcsmbs/wcsnlen.c
index 2bee705..e928ab6 100644
--- a/wcsmbs/wcsnlen.c
+++ b/wcsmbs/wcsnlen.c
@@ -18,8 +18,11 @@
#include <wchar.h>
+#ifdef WCSNLEN
+# define __wcsnlen WCSNLEN
+#endif
-/* Copy SRC to DEST. */
+/* Return length of string S at most maxlen. */
size_t
__wcsnlen (s, maxlen)
const wchar_t *s;
@@ -44,4 +47,6 @@ __wcsnlen (s, maxlen)
return len;
}
+#ifndef WCSNLEN
weak_alias (__wcsnlen, wcsnlen)
+#endif