next up previous contents index
Next: Example 1 Up: Tutorial Previous: How to glue several   Contents   Index


Examples of main files

The directory test contains minimal applications of the command interpreter (i.e. only the commands contained in the library are present). The first one is a program called test_ using an external initialization file called interp.ini. In the second program test2 the initialization file is contained in the executable. An application of the command interpreter can be based on one of these two test programs (the user has only to add new commands and functions).

The directory test/extra contains other minimal applications where additional expression evaluators are used.

We reproduce here some instructive parts of the main.c files of the test programs.



Subsections

2009-11-12