.title $$narg Define $$narg default .ident "V02.00" ;+ ; Index Define $$narg default ; ; Usage ; ; int $$narg = ; ; ... ; main() ; { ; ... ; } ; ; Description ; ; If no command line is provided when the program starts, ; the program will print a command line prompt on the terminal, ; read one line and build the argv[] array. If this is ; undesirable, include a global definition of $$narg in your C ; program as follows: ; ; int $$narg = 1; ; ; This will supress the terminal read operation and the argv[] ; array will be set to a dummy value. ; ; If the user program does not define $$narg, it defaults to 0 ; which enables the command line prompt. ; ; Note that $$narg must be initilized at compilation time. ; It is tested by the initialization code before the main() ; routine is called. ; ;- ; Edit history ; V02.00 19-Oct-82 TTC Rework of CS library ; .psect c$data $$narg:: .word 0 ; Enable command line prompt .end