xref: /netbsd-src/external/bsd/tmux/dist/compat/explicit_bzero.c (revision 4e179ddab96f97aa64efc589ce1918be5318aaaf)
1 /*	$OpenBSD: explicit_bzero.c,v 1.4 2015/08/31 02:53:57 guenther Exp $ */
2 /*
3  * Public domain.
4  * Written by Matthew Dempsky.
5  */
6 
7 #include <string.h>
8 
9 #include "compat.h"
10 
11 void
explicit_bzero(void * buf,size_t len)12 explicit_bzero(void *buf, size_t len)
13 {
14 	memset(buf, 0, len);
15 }
16