You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
362 B
21 lines
362 B
10 years ago
|
/* $OpenBSD: explicit_bzero.c,v 1.1 2014/01/22 21:06:45 tedu Exp $ */
|
||
|
/*
|
||
|
* Public domain.
|
||
|
* Written by Ted Unangst
|
||
|
*/
|
||
|
|
||
|
#include <string.h>
|
||
|
#include "util.h"
|
||
|
|
||
|
/*
|
||
|
* explicit_bzero - don't let the compiler optimize away bzero
|
||
|
*/
|
||
|
|
||
|
static void (* volatile signify_bzero)(void *, size_t) = bzero;
|
||
|
|
||
|
void
|
||
|
explicit_bzero(void *p, size_t n)
|
||
|
{
|
||
|
signify_bzero(p, n);
|
||
|
}
|