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

  1. @node fflush, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. int fflush(FILE *file);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function causes any unwritten buffered data to be written out to
  13. the given @var{file}.  This is useful in cases where the output is line
  14. buffered and you want to write a partial line. 
  15.  
  16. @subheading Return Value
  17.  
  18. Zero on success, -1 on error.
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. printf("Enter value : ");
  24. fflush(stdout);
  25. scanf(result);
  26. @end example
  27.  
  28.