443
edits
-
Changes
Created page with "<strong>FGETC</strong> ==SYNOPSIS== #include <stdio.h> int fgetc(FILE * stream) ==DESCRIPTION== <strong>Fgetc</strong>() returns the next character from the inpu..."
<strong>FGETC</strong>
==SYNOPSIS==
#include <stdio.h>
int fgetc(FILE * stream)
==DESCRIPTION==
<strong>Fgetc</strong>() returns the next character from the input
stream. If end-of-file is encountered EOF will be
returned instead. It is for this reason that the function is declared as int. The integer EOF is not a valid
byte, thus end-of-file is distinguishable from reading
a byte of all 1 bits from the file. <strong>Fgetc</strong>() is the
non-macro version of <strong>getc</strong>().
==SEE ALSO==
fopen, fclose, fputc, getc, putc
==SYNOPSIS==
#include <stdio.h>
int fgetc(FILE * stream)
==DESCRIPTION==
<strong>Fgetc</strong>() returns the next character from the input
stream. If end-of-file is encountered EOF will be
returned instead. It is for this reason that the function is declared as int. The integer EOF is not a valid
byte, thus end-of-file is distinguishable from reading
a byte of all 1 bits from the file. <strong>Fgetc</strong>() is the
non-macro version of <strong>getc</strong>().
==SEE ALSO==
fopen, fclose, fputc, getc, putc