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.
11 # define Wstrlcpy __wcslcpy
13 # define Wstrlcpy strlcpy
17 * Copy at most n-1 chars from src to dst and nul-terminate dst.
18 * Returns strlen(src), so truncation occurred if the return value is >= n. */
21 size_t Wstrlcpy(register Wchar *__restrict dst,
22 register const Wchar *__restrict src,
23 size_t n) attribute_hidden;
25 size_t Wstrlcpy(register Wchar *__restrict dst,
26 register const Wchar *__restrict src,
29 const Wchar *src0 = src;
38 while ((*dst = *src) != 0) {
50 #ifndef __UCLIBC_HAS_LOCALE__
51 strong_alias(__wcslcpy,wcsxfrm)
52 libc_hidden_def(wcsxfrm)
57 libc_hidden_def(strlcpy)
58 #ifndef __UCLIBC_HAS_LOCALE__
59 strong_alias(strlcpy,strxfrm)
60 libc_hidden_def(strxfrm)