2 ** Copyright 2002, Manuel J. Petit.
3 ** Copyright 2011, Oliver Tappe <zooey@hirschkafer.de>.
4 ** All rights reserved. Distributed under the terms of the NewOS License.
7 #include <wchar_private.h>
11 __wcslcpy(wchar_t* dest
, const wchar_t* source
, size_t maxLength
)
16 return __wcslen(source
);
18 for (i
= 0; i
< maxLength
- 1 && *source
!= L
'\0'; ++i
)
23 return i
+ __wcslen(source
);
27 B_DEFINE_WEAK_ALIAS(__wcslcpy
, wcslcpy
);