Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setbuffer(3c) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setbuf(3s)

setlinebuf(3c)



     setbuffer(3c)              DG/UX 4.30               setbuffer(3c)



     NAME
          setbuffer - Assign a buffer to a specified stream

     SYNOPSIS
          #include <stdio.h>
          FILE *fp;
          char *bufptr;
          int size;
          void setbuffer();
          setbuffer(fp, bufptr, size); (or) setbuffer(fp, NULL, size);

          where size is the size of the character array bufptr.

     DESCRIPTION
          The setbuffer function assigns a buffer to a stream whose
          I/O you have been handling with the stdio(3s) functions.
          Output is sent to the file or device only when you call
          fflush(3s) or when the buffer fills up.  This function is an
          alternate form of setbuf.  If the buffer pointer bufptr is
          null (0), it specifies an unbuffered file and uses single
          byte I/O.  Otherwise, the routine assumes that the buffer
          can hold at least the number of characters specified by
          size.

     RETURNS
          setbuffer does not return a value.

     SEE ALSO
          setbuf(3s), setlinebuf(3c).


























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



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