In the C Programming Language, the fgetc function reads a persona from the stream pointed to with the aid of stream.
The syntax for the fgetc function in the C Language is:
int fgetc(FILE *stream);
Parameters or Arguments
The stream to read.
The fgetc characteristic returns the persona read. If an error occurs, the fgetc feature will set the stream’s error indicator and return EOF. If the fgetc feature encounters the stop of stream, it will set the stream’s end-of-file indicator and return EOF.
In the C Language, the required header for the fgetc feature is:
In the C Language, the fgetc characteristic can be used in the following versions:
Other C functions that are similar to the fgetc function:
getc characteristic getchar characteristic
Other C functions that are noteworthy when dealing with the fgetc function:
fputc feature putc characteristic putchar feature ungetc characteristic