Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/strdup.c')
-rw-r--r--newlib/libc/stdlib/strdup.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/strdup.c b/newlib/libc/stdlib/strdup.c
new file mode 100644
index 000000000..dbb069264
--- /dev/null
+++ b/newlib/libc/stdlib/strdup.c
@@ -0,0 +1,13 @@
+#ifndef _REENT_ONLY
+
+#include <reent.h>
+#include <stdlib.h>
+#include <string.h>
+
+char *
+_DEFUN (strdup, (str), _CONST char *str)
+{
+ return _strdup_r (_REENT, str);
+}
+
+#endif /* !_REENT_ONLY */