![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Set the first part of an object to null bytes
#include <strings.h>
void bzero( void *dst,
            size_t n );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The bzero() function fills the first n bytes of the object pointed to by dst with zero (NUL) bytes.
![]()  | 
This function is similar to the ANSI memset() function. New code should use the ANSI function. | 
#include <stdlib.h>
#include <string.h>
int main( void )
  {
    char buffer[80];
    bzero( buffer, 80 );
    return EXIT_SUCCESS;
  }
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | Yes | 
| Signal handler | Yes | 
| Thread | Yes | 
bcmp(), bcopy(), memset(), strset()
![]()  | 
![]()  | 
![]()  | 
![]()  |