strdup.c 343 B

12345678910111213141516171819
  1. /*
  2. * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #define L_strdup
  7. #define Wstrdup __strdup
  8. #undef Wstrlen
  9. #undef Wstrcpy
  10. #define Wstrlen __strlen
  11. #define Wstrcpy __strcpy
  12. #include "wstring.c"
  13. strong_alias(__strdup, strdup)
  14. #undef L_strdup