diff options
Diffstat (limited to 'lib/string/bzero.c')
| -rw-r--r-- | lib/string/bzero.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/string/bzero.c b/lib/string/bzero.c new file mode 100644 index 0000000..08f1398 --- /dev/null +++ b/lib/string/bzero.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: MIT */ +/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */ + +#define _BSD_SOURCE +#include <string.h> +#include <strings.h> + +void bzero(void *s, size_t n) +{ + memset(s, 0, n); +} |
