bzero3
Write zeroes to memory
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
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 41 times.