diff options
Diffstat (limited to 'libc/string/strdup.c')
-rw-r--r-- | libc/string/strdup.c | 19 |
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..2bf2462fb --- /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 |