aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-compat/explicit_bzero.c
blob: 58c81d681a30546616ed83226952f3641b2ea85c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*  $OpenBSD: explicit_bzero.c,v 1.4 2015/08/31 02:53:57 guenther Exp $ */
/*
 * Public domain.
 * Written by Matthew Dempsky.
 */

#include "includes.h"
#ifndef HAVE_EXPLICIT_BZERO

#include <string.h>

void
explicit_bzero(void *buf, size_t len)
{
	memset(buf, 0, len);
}
#endif