ubase/util/explicit_bzero.c

12 lines
250 B
C
Raw Normal View History

2014-04-30 11:28:38 +00:00
/* See LICENSE file for copyright and license details. */
2014-04-30 11:25:29 +00: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);
}