bzero() — Zero bytes in memory
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
Format
#define _XOPEN_SOURCE_EXTENDED 1
#include <strings.h>
void bzero(void *s, size_t n);
General description
The bzero() function places n zero-valued bytes in the area pointed to by s.
Note: The
bzero() function has been moved to the Legacy Option group in Single UNIX Specification, Version 3 and
may be withdrawn in a future version. The memset() function is preferred
for portability.
Returned value
bzero() returns no values.
There are no errno values defined for bzero().