libdl: end must be bigger than start
[uclibc-ng.git] / libc / string / strcpy.c
blob549360c22adb7957590d2656c8e6c4e394b29aee
1 /*
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.
6 */
8 #include "_string.h"
10 #ifdef WANT_WIDE
11 # define Wstrcpy wcscpy
12 #else
13 # define Wstrcpy strcpy
14 #endif
16 Wchar *Wstrcpy(Wchar * __restrict s1, const Wchar * __restrict s2)
18 register Wchar *s = s1;
20 while ( (*s++ = *s2++) != 0 );
22 return s1;
25 #ifndef WANT_WIDE
26 libc_hidden_def(strcpy)
27 #endif