home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / setlineb.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  642 b   |  33 lines

  1. @node setlinebuf, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. void setlinebuf(FILE *file);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function modifies the buffering characteristics of @var{file}. 
  13. First, if the file already has a buffer, it is freed.  If there was any
  14. pending data in it, it is lost, so this function should only be used
  15. immediately after a call to @code{fopen}.
  16.  
  17. Next, a buffer is allocated and the file is set to line buffering.
  18.  
  19. @xref{setbuf}.
  20. @xref{setlinebuf}.
  21. @xref{setvbuf}.
  22.  
  23. @subheading Return Value
  24.  
  25. None.
  26.  
  27. @subheading Example
  28.  
  29. @example
  30. setlinebuf(stderr);
  31. @end example
  32.  
  33.