bzero(3C) DG/UX 5.4.2 bzero(3C)
NAME
bzero - zero a portion of memory
SYNOPSIS
int bzero(), length;
char *ptr;
...
bzero(ptr, length);
where:
ptr A pointer to the area to clear
length The number of bytes set to zero
DESCRIPTION
The bzero function fills a specified memory area with zeros. The
size of the area of memory is equal to length.
This function comes from the University of California Berkeley UNIX
(BSD) system.
RETURNS
The bzero function returns no value.
EXAMPLE
/* Program test for the bzero() function */
#include <stdio.h>
int bzero();
char buf[80] = "abcdef";
main() {
printf("buf = '%s'\n", buf);
bzero(buf, sizeof(buf));
printf("buf = '%s'\n", buf);
return 0;
}
A call to this program generates the output
buf = 'abcdef'
buf = ''
SEE ALSO
memory(3C).
Licensed material--property of copyright holder(s) 1