In the C Programming Language, the getc function reads a personality from the flow pointed to by means of stream.
The syntax for the getc characteristic in the C Language is:
int getc(FILE *stream);
Parameters or Arguments
The stream to read.
The getc characteristic returns the personality read. If an error occurs, the getc feature will set the stream’s error indicator and return EOF. If the getc 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 getc characteristic is:
In the C Language, the getc function can be used in the following versions:
Other C functions that are comparable to the getc function:
fgetc feature getchar feature
Other C functions that are noteworthy when dealing with the getc function:
fputc feature putc characteristic putchar function ungetc feature