libdl: first execute all destructors, then munmap library
[uclibc-ng.git] / libc / string / strcat.c
blob63619bcc8e33bd7540e086a86d7d232aec0c33cf
1 /*
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.
6 */
8 #include "_string.h"
10 #ifdef WANT_WIDE
11 # define Wstrcat wcscat
12 #else
13 # define Wstrcat strcat
14 #endif
16 Wchar *Wstrcat(Wchar * __restrict s1, register const Wchar * __restrict s2)
18 register Wchar *s = s1;
20 while (*s++);
21 --s;
22 while ((*s++ = *s2++) != 0);
24 return s1;
26 libc_hidden_def(Wstrcat)