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

  1. @node fgetc, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. int fgetc(FILE *file);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. Returns the next character in the given @var{file} as an unsigned char. 
  13.  
  14. @subheading Return Value
  15.  
  16. The given char (value 0..255) or @code{EOF} at end-of-file.
  17.  
  18. @subheading Example
  19.  
  20. @example
  21. int c;
  22. while((c=fgetc(stdin)) != EOF)
  23.   fputc(c, stdout);
  24. @end example
  25.  
  26.