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
12 # define Wstrxfrm wcsxfrm
14 # define Wstrlcpy strlcpy
15 # define Wstrxfrm strxfrm
19 * Copy at most n-1 chars from src to dst and nul-terminate dst.
20 * Returns strlen(src), so truncation occurred if the return value is >= n. */
22 size_t Wstrlcpy(register Wchar
*__restrict dst
,
23 register const Wchar
*__restrict src
,
26 const Wchar
*src0
= src
;
35 while ((*dst
= *src
) != 0) {
46 libc_hidden_def(strlcpy
)
49 #ifndef __UCLIBC_HAS_LOCALE__
50 strong_alias(Wstrlcpy
,Wstrxfrm
)