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 Wstpncpy wcpncpy
13 libc_hidden_proto(stpncpy)
14 # define Wstpncpy stpncpy
17 Wchar *Wstpncpy(register Wchar * __restrict s1,
18 register const Wchar * __restrict s2,
26 if ((*s = *s2) != 0) s2++; /* Need to fill tail with 0s. */
32 if ((*s = *s2) != 0) s2++; /* Need to fill tail with 0s. */
41 libc_hidden_def(stpncpy)