INOK

From Creatures Wikia

Jump to: navigation, search

INOK is a CAOS function which checks the input stream.

Usage

Syntax: INOK

Returns 1 if the input stream is good, 0 if it is bad. The stream is bad after the end is reached (there is no more data to read) or if it was attached to a nonexistent file.

Use only after FILE IOPE, otherwise an error occurs. This means you cannot use INOK to check whether the input stream is attached.

Examples

See FILE IOPE and INNL.

See also

Personal tools