FGETC - get a character from input.

(ANSI Standard)

Usage:

#include <stdio.h>
i = fgetc( f );

Where:

FILE *f;
indicates an open file that is to be read.
int i;
receives the character that is read.

Description:

"fgetc" returns the next character from the input stream pointed to by "f". It differs from "getc" in that "getc" may be implemented as a macro while "fgetc" is always implemented as a function.

"fgetc" returns EOF when end-of-file is reached or upon a read error. If the given file pointer does not refer to a valid open file, the program will terminate with a fault.

Copyright © 1996, Thinkage Ltd.