xref: /haiku/src/system/libroot/posix/wchar/wcscpy.c (revision 71452e98334eaac603bf542d159e24788a46bebb)
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
5 
6 #include <wchar_private.h>
7 
8 
9 wchar_t*
10 __wcscpy(wchar_t* destIn, const wchar_t* src)
11 {
12 	wchar_t* dest = destIn;
13 
14 	while ((*dest++ = *src++) != L'\0')
15 		;
16 
17 	return destIn;
18 }
19 
20 
21 B_DEFINE_WEAK_ALIAS(__wcscpy, wcscpy);
22