fgetc ( alien -- byte/f )
Factor handbook > Input and output > ANSI C streams

Prev:fputc ( byte alien -- )
Next:fread-unsafe ( n buf alien -- count )


Vocabulary
io.streams.c

Inputs and outputs
aliena C FILE* handle
byte/fan integer from 0 to 255 or f


Word description
Reads a single byte from a C FILE* handle, and outputs f on end of file.

Errors
Throws an error if the input operation failed.

Definition

PRIMITIVE: fgetc ( alien -- byte/f )