Copyright ® (1999-2005) EDMGROUP Pty Ltd - EZY Prolog Reference

 readint

[This is preliminary specification and subject to change.]

Group

Read/Write  (more...)

Type

determ

Syntax

readint( INTEGER INT)

Flow patterns

(o)

 

Description:

The readint predicate reads an integer from the current read device, which is the keyboard, unless the default is changed via readdevice.
No conversion of the characters read takes place until readint encounters a carriage return (ASCII 13). The readint fails if the characters do not compose a valid integer, or if they specify an oversize integer

Sample:

No sample

Copyright © 1997-2005 EDMGROUP (Australia)