Previous: , Up: Programs   [Index]


12.2 Procedural Programs

Procedural programs are made up of function declarations and definitions.

One ‘main’ function, returning intrinsic integer data is expected. The function may have an empty arguments list or may be variadic with no fixed arguments.

integer
main(void)
{
    return 0;
}
integer
main(...)
{
    return 0;
}

Variadic ‘main’ functions will have their arguments of the ‘text’ intrinsic string type, in the number set up by the application (zero allowed).

See Variadic Functions.

See Positional Arguments Access.

The function is called for program execution.