getch - grab a parameter from command line
int getch(name, format, value)
parameter name
format of variable (d,f,s)
variable value of variable
This function is the seplib equivalent of the older getpar()
for
extracting values from command line expressions of the form
`name=value'.
More than one name may be searched by separating the alternatives by blanks or commas. Possible format conversions are ``d'' (or ``i''), ``f'' (or ``r''), ``g'' and ``s'' for integer, floating point, double precision, and strings respectively. If no match is found, the variable is not altered.
When a keyword `par=filename' is encountered on the command line, that file (and any that it might in turn point to) is scanned as well. Getch returns a count of the number of matches it found.
Program execution is terminated with extreme prejudice if a par file cannot be opened or the command argument list cannot be found. It is also an error for parfiles to be nested more then 10 deep.
It should be possible to limit the length of retrieved strings and to extract individual characters. It is also not presently possible to redirect search to an internal argument list.
parameter command line argument
the fetch manpage, the hetch manpage, the putch manpage, the auxpar manpage, the getch_add_string manpage
sep