Manpages - explicit_bzero.3bsd
(See
for include usage.)
The
function writes
zero bytes to the string
If
is zero,
does nothing.
The
variant behaves the same as the
function, but will not be removed by a compiler’s dead store optimization pass, making it useful for clearing sensitive memory such as a password.
The
function first appeared in
glibc 2.25.