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
aliena C FILE* handle


Outputs
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 )