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