OSDN Git Service

nptl: rephrase *.sym handling
[uclinux-h8/uClibc.git] / libc / string / bzero.c
1 /*
2  * Copyright (C) 2002     Manuel Novoa III
3  * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
4  *
5  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6  */
7
8 #include <string.h>
9
10 #ifdef __UCLIBC_SUSV3_LEGACY__
11 void bzero(void *s, size_t n)
12 {
13 #if 1
14         (void)memset(s, 0, n);
15 #else
16         register unsigned char *p = s;
17
18         while (n) {
19                 *p++ = 0;
20                 --n;
21         }
22 #endif
23 }
24 #endif