| Main index | Section 3 | 日本語 | Options |
#include <strings.h>
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.
The explicit_bzero() function first appeared in OpenBSD 5.5 and FreeBSD 11.0 .
IEEE Std 1003.1-2008 ("POSIX.1") removes the specification of bzero() and it is marked as LEGACY in IEEE Std 1003.1-2004 ("POSIX.1"). For portability with other systems new programs should use memset(3).
| BZERO (3) | August 24, 2015 |
| Main index | Section 3 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Never write it in C if you can do it in `awk'; Never do it in `awk' if `sed' can handle it; Never use `sed' when `tr' can do the job; Never invoke `tr' when `cat' is sufficient; Avoid using `cat' whenever possible. |
” |
| — Taylor's Laws of Programming | ||