2 argv - count or value of a calc command line supplied argument
13 Without args, this builtin returns the number of calc command line
16 If the numeric arg is supplied, then the corresponding command line
17 string is return, if it exists. Otherwise a nul() value is returned.
19 In keeping with the argc/argv convention of C, argv(0) will refer
20 to the 1st argv string, and argv(argv()-1) will refer to the last.
21 This differs from the way the param() builtin works.
23 By default, calc will evaluate all of its command line arguments.
24 However, if calc is invoked with -s, all non-dashed options will
25 be left as unevaluated strings. Thus:
29 will cause calc to print 4 and enter interactive mode. In this case
36 will cause calc to interactive mode. The argv() builtin will return 1
37 and argv(0) will return the string "2+2".
42 > for (i = 0; i < argc; i++) print "argv[": i : '] = "': argv(i) : '"';