home *** CD-ROM | disk | FTP | other *** search
- @node fgetc, stdio
- @subheading Syntax
-
- @example
- #include <stdio.h>
-
- int fgetc(FILE *file);
- @end example
-
- @subheading Description
-
- Returns the next character in the given @var{file} as an unsigned char.
-
- @subheading Return Value
-
- The given char (value 0..255) or @code{EOF} at end-of-file.
-
- @subheading Example
-
- @example
- int c;
- while((c=fgetc(stdin)) != EOF)
- fputc(c, stdout);
- @end example
-
-