Name readint
Definition readint : expr(int)
Defined in io.l
Implementation lard
Description Read a line from standard input and convert it to an integer. If the line doesn't contain an integer a run-time error occurs. Integers in binary, octal, decimal and hexidecimal are all recognised in the following formats:

2#01010101
8#0123
10#12345
16#1ab4e

When no base is specified the default given by the last call to set_default_input_base is used, or failing that decimal.

See Also set_default_input_base