fgetc

Syntax

int fgetc(int * fileptr)

Arguments

fileptr
Pointer to a file opened using fopen.

Return

The byte (unsigned) read from the file if successful, otherwise -1.

Description

Reads a single byte from the file referenced by fileptr.

See Also

fopen, fputc, getc, fgets, fread

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.