ubase/libutil/explicit_bzero.c

13 lines
251 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>
2014-06-30 14:03:41 -04:00
2014-04-30 07:25:29 -04:00
#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);
}