Subsections

The standard library

Asterix comes with a small standard library. Prototypes for the functions can found in the appropriate include files.

conv.inc

This module provide functions for standard conversions.



function StringToInt(str : string) : int;

function IntToString(i : int) : string;

function StringToReal(str : string) : real;

function RealToString(r : real) : string;

function IntToReal(i : int) : real;

function RealToInt(r : real) : int;

function IntToChar(i : int) : char;

function CharToInt(c : char) : int;

io.inc

This module provides an interface for I/O operations.



function WriteChar(ch : char) : bool;

function WriteInt(i : int) : bool;

function WriteLine() : bool;

function WriteReal(r : real) : bool;

function WriteString(s : string) : bool;

random.inc

function Random() : real;

This function yields a random real number $r$, such that $0.0 \leq r < 1.0$.

string.inc

function StringCopy(str : string) : string;



K.G. Langendoen 2006-10-03