Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bzero(3C) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

reentrant(3)

memory(3C)



bzero(3C)                      DG/UX 5.4R3.00                      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.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |              point    safe  |
                     +---------+-----------------------------+
                     |bzero    |     Y          N        N   |
                     +---------+-----------------------------+

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 = ''





Licensed material--property of copyright holder(s)                         1




bzero(3C)                      DG/UX 5.4R3.00                      bzero(3C)


SEE ALSO
       reentrant(3), memory(3C).























































Licensed material--property of copyright holder(s)                         2


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026