ubase/util/explicit_bzero.c

12 lines
250 B
C
Raw Normal View History

2014-04-30 07:28:38 -04:00
/* See LICENSE file for copyright and license details. */
2014-04-30 07:25:29 -04:00
#include <string.h>
#include "../util.h"
static void *(*volatile explicit_memset)(void *, int, size_t) = memset;
void
explicit_bzero(void *b, size_t len)
{
(*explicit_memset)(b, 0, len);
}