next up previous
Next: Recursion Up: Variables and Recursive Functions Previous: Variables and Recursive Functions

Special Variables

Two variables are predefined by ccli. The first is ARGC, an integer defined to be the number of arguments on the command line to ccli (excluding options to ccli). The second, ARGV, is a list of the arguments on the command line, interpreted as strings. For example, if you call ccli like this:
ccli file.ccl 10 unix
then you get
ARGC = 4;
ARGV = { "ccli" "file.ccl" "10" "unix" };
Note: To convert the string "10" into the integer 10, use the standard.ccl function atoi as in
include standard.ccl
n := atoi ( ARGV[2] );



Eric Klavins 2003-12-03