diff options
Diffstat (limited to 'newlib/libc/stdlib/strdup.c')
-rw-r--r-- | newlib/libc/stdlib/strdup.c | 13 |
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 */ |