getc

Gets one character from an input stream

#include <stdio.h>
char getc (
        FILE *stream
)

Arguments

stream Pointer to an input stream 

Return Value

The next character read from the input stream is returned if the function was successful. Otherwise, EOF is returned in case of end-of-file or error.

Explanation

The next character is read from the input stream pointed to by stream. The character is returned by the function.

See Also

getchar(), gets()