BZERO(3) Library Functions Manual BZERO(3)

bzeromemory operations (LEGACY)


#include <strings.h>

void bzero(void *s, size_t n);

The bzero () function shall place zero-valued bytes in the area pointed to by .

The bzero () function shall not return a value.

No errors are defined.

None.

The memset(3) function is preferred over this function.

For maximum portability, it is recommended to replace the function call to bzero () as follows:

#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)

None.

This function may be withdrawn in a future version.

memset(3), the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <strings.h>

First released in Issue 4, Version 2.

Moved from X/OPEN UNIX extension to BASE.

This function is marked LEGACY.

footer end

January 1, 2004 posix.fail