Header Ads Widget

[MAN] explicit_bzero

Content-type: text/html; charset=UTF-8 Man page of EXPLICIT_BZERO

EXPLICIT_BZERO

Section: Misc. Reference Manual Pages (3bsd)
Index Return to Main Contents

BSD mandoc
 

NAME

explicit_bzero - write zeroes to a byte string  

LIBRARY

Lb libbsd  

SYNOPSIS

In string.h (See libbsd(7) for include usage.) Ft void Fn explicit_bzero void *buf size_t len  

DESCRIPTION

The Fn explicit_bzero function writes Fa len zero bytes to the string Fa buf . If Fa len is zero, Fn explicit_bzero does nothing.

The Fn explicit_bzero variant behaves the same as the Fn bzero 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.  

SEE ALSO

bzero(3), memset(3), swab(3)  

HISTORY

The Fn explicit_bzero function first appeared in Ox 5.5 , glibc 2.25.


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
SEE ALSO
HISTORY

This document was created by man2html, using the manual pages.
Time: 04:45:43 GMT, September 16, 2022

댓글 쓰기

0 댓글