libdl: first execute all destructors, then munmap library
[uclibc-ng.git] / libc / string / bzero.c
blob32dce416ecbf7e1aaf86892dd0ab9246d56853eb
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 __UCLIBC_SUSV3_LEGACY__
11 void bzero(void *s, size_t n)
13 #if 1
14 (void)memset(s, 0, n);
15 #else
16 register unsigned char *p = s;
18 while (n) {
19 *p++ = 0;
20 --n;
22 #endif
24 #endif