Handbook
Glossary
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
alien
a C FILE* handle
Outputs
byte/f
an 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
IN:
io.streams.c
PRIMITIVE:
fgetc
( alien -- byte/f )