summaryrefslogtreecommitdiff
path: root/lib/string/bzero.c
blob: 08f139885e35165a6e05096032ae40ed0fe4d99e (plain)
1
2
3
4
5
6
7
8
9
10
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);
}