DEFINITION MODULE TTIO;	(* Ch. Jacobi	15.12.79 *)
				(* modified	 5.03.80 *)
				(* S. McKenzie	19.05.81 for UNIX *)
FROM SYSTEM IMPORT WORD;
EXPORT QUALIFIED (* procs      *) Read, ReadAgain, ReadInt, Write, WriteCard, WriteHex, WriteInt, WriteOct,
				  WriteLn, WriteString,
		 (* predicates *) EOF;

VAR
    EOF : BOOLEAN;

PROCEDURE Read(VAR ch : CHAR);

PROCEDURE ReadAgain;

PROCEDURE ReadInt(VAR integ : INTEGER; VAR nextch : CHAR; VAR isnum : BOOLEAN);

PROCEDURE Write(ch : CHAR);

PROCEDURE WriteCard(card, width : CARDINAL);

PROCEDURE WriteHex(word : WORD; width : CARDINAL);

PROCEDURE WriteInt(int : INTEGER; width : CARDINAL);

PROCEDURE WriteOct(word : WORD; width : CARDINAL);

PROCEDURE WriteLn;

PROCEDURE WriteString(str : ARRAY OF CHAR; width : CARDINAL);

END TTIO.
