www.delorie.com/djgpp/doc/libc/libc_704.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

setlinebuf

Syntax

 
#include <stdio.h>

void setlinebuf(FILE *file);

Description

This function modifies the buffering characteristics of file. First, if the file already has a buffer, it is freed. If there was any pending data in it, it is lost, so this function should only be used immediately after a call to fopen.

Next, a buffer is allocated and the file is set to line buffering.

See section setbuf. See section setlinebuf. See section setvbuf.

Return Value

None.

Portability

ANSI/ISO C No
POSIX No

Example

 
setlinebuf(stderr);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004