fgetc/getc function
fgetc and
getc both read a character from a file (input stream)
and have the same syntax. They are for all intents and purposes the same!
Library: stdio.h
Prototype: int fgetc(FILE *stream);
Syntax: FILE *file_pointer;
char ch;
ch = fgetc(file_pointer);
ch = getc(file_pointer);
Examples:
Example program.
See also:
getch, getche (non standard)
Martin Leslie