blob: a541f369b440c08ed53039182d9b67da05dcafbf [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
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__
11void 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