summaryrefslogtreecommitdiffstats
path: root/libc/string/strdup.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-17 02:20:45 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-17 02:20:45 +0000
commit5c58a730a9ad0b7b910d3850fd96a2c264a0c05e (patch)
tree3ca1b7db10e6c65473180172d0b8d5102a855053 /libc/string/strdup.c
parent8b50f4596cc9b5afd7eb97a9d36c2084ccb17f26 (diff)
downloaduClibc-alpine-5c58a730a9ad0b7b910d3850fd96a2c264a0c05e.tar.bz2
uClibc-alpine-5c58a730a9ad0b7b910d3850fd96a2c264a0c05e.tar.xz
Copy from trunk.
Diffstat (limited to 'libc/string/strdup.c')
-rw-r--r--libc/string/strdup.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/string/strdup.c b/libc/string/strdup.c
new file mode 100644
index 000000000..19c2d6ad1
--- /dev/null
+++ b/libc/string/strdup.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strdup
+#define Wstrdup __strdup
+
+#undef Wstrlen
+#undef Wstrcpy
+#define Wstrlen strlen
+#define Wstrcpy strcpy
+
+#include "wstring.c"
+
+strong_alias(__strdup, strdup)
+
+#undef L_strdup