setbuf (SunOS) setbuf (SunOS)
NAME
setbuf, setbuffer, setlinebuf, setvbuf - Assign buffering to a stream
LIBRARY
Standard C Library (libc.a)
SUN OS SYNOPSIS
#include <stdio.h>
void setbuf(
FILE *stream,
char *buffer);
int setvbuf(
FILE *stream,
char *buffer,
int mode,
int size);
void setbuffer(
FILE *stream,
char *buffer,
int size);
void setlinebuf(
FILE *stream);
DIGITAL UNIX SYNOPSIS
#include <stdio.h>
void setbuf(
FILE *stream,
char *buffer);
int setvbuf(
FILE *stream,
char *buffer,
int mode,
size_t size);
int setvbuf_unlocked(
FILE *stream,
char *buffer,
int mode,
size_t size);
void setbuffer(
FILE *stream,
char *buffer,
int size);
void setlinebuf(
FILE *stream);
PARAMETERS
Specifies the input/output stream. Points to a character array.
Determines how the stream parameter is buffered. Specifies the size of
the buffer to be used.
DIFFERENCES
Changes declaration of size to size_t.
Adds the setvbuf_unlocked() function.
RELATED INFORMATION
Digital UNIX Functions:
setbuf(3) delim off
setbuf (SunOS)