fgetc


Read character from stream (same as getc)

Remark

These functions are not supported by the debugging functions which CS+ provides.

[Classification]

Standard library

[Syntax]

#include <stdio.h>

int fgetc(FILE *stream);

[Return value]

The input character is returned.

Error return does not occur.

[Description]

This function inputs one character from the input stream pointed to by stream. Only the standard input/output stdin can be specified for stream.

[Example]

#include    <stdio.h>
 
int func(void) {
        int c;
        c = fgetc(stdin);
        return(c);
}