setbuf man page on UNIXv7

Man page or keyword search:  
man Server   300 pages
apropos Keyword Search (all sections)
Output format
UNIXv7 logo
[printable version]

SETBUF(3S)							    SETBUF(3S)

NAME
       setbuf - assign buffering to a stream

SYNOPSIS
       #include <stdio.h>

       setbuf(stream, buf)
       FILE *stream;
       char *buf;

DESCRIPTION
       Setbuf  is used after a stream has been opened but before it is read or
       written.	 It causes the character array buf to be used  instead	of  an
       automatically  allocated	 buffer.  If buf is the constant pointer NULL,
       input/output will be completely unbuffered.

       A manifest constant BUFSIZ tells how big an array is needed:

		 char buf[BUFSIZ];

       A buffer is normally obtained from malloc(3) upon  the  first  getc  or
       putc(3)	on the file, except that output streams directed to terminals,
       and the standard error stream stderr are normally not buffered.

SEE ALSO
       fopen(3), getc(3), putc(3), malloc(3)

								    SETBUF(3S)
[top]

List of man pages available for UNIXv7

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net