explicit_bzero3
Write zeroes to memory
Part of bzero(3).
Usage
#include <strings.h>
void
bzero(void *b, size_t len);
void
explicit_bzero(void *b, size_t len);
Library
Standard C Library (libc, -lc)
Overview
The bzero() function writes len zero bytes to the object b. If len is zero, bzero() does nothing.
The explicit_bzero() variant behaves the same, but will not be removed by a compiler's dead store optimization pass, making it useful for clearing sensitive memory such as a password.
Releases
25 releases since FreeBSD 11.0-RELEASE; the text changed 13 times.