MicrOS
getc.c File Reference
#include "../stdio.h"

Functions

int getc (FILE *stream)
 Get character from stream. More...
 

Function Documentation

◆ getc()

int getc ( FILE stream)

Get character from stream.

Returns the character currently pointed by the internal file position indicator of the specified stream. The internal file position indicator is then advanced to the next character.

Parameters
streamPointer to a FILE object that identifies the stream to be closed.
Returns
On success, the character read is returned. If the position indicator was at the end-of-file, the function returns EOF.