Skip to content

wbstartuplib

This library runs when a program starts. Started from the CLI, it splits the command line into parameters: spaces separate them, and quotes keep a parameter with spaces together. It takes the first 255 characters of the command line; the rest of a longer line is left out. Started from the Workbench, it takes the startup message of the Workbench, makes the program’s drawer the current directory and takes the icons given with the program as its parameters. At the end of the program it makes the old current directory current again and answers the Workbench’s message.

The commands of the cliargslib library, NumPars, Par$, FromCLI and ParPath$, read what this library collected.

What brings this library into a program, and when its routines run, is explained in Libraries in a compiled program.

Library number 65533.

This library declares no commands. Its routines are used by the compiler, by the code it generates or by other libraries.