Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bzero(3C) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     bzero(3C)                  DG/UX 4.30                   bzero(3C)



     NAME
          bzero - Zero a portion of memory.

     SYNOPSIS
          int bzero(), length;
          char *ptr;
          ...
          bzero(ptr, length);

          where  ptr is a pointer to the area to clear.
                 length is 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 = ''














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



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