2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
12 # define Wstrdup wcsdup
13 # define Wstrlen wcslen
15 # define Wstrdup strdup
16 # define Wstrlen strlen
19 Wchar *Wstrdup(register const Wchar *s1)
22 register size_t l = (Wstrlen(s1) + 1) * sizeof(Wchar);
24 if ((s = malloc(l)) != NULL) {
32 libc_hidden_weak(strdup)