OptionProcess
Syntax | ||
int OptionProcess(int offset,int argc,char *argv[], struct OptionData *opt,int (*opterr)(char *)); | ||
Header | ||
base/option.h | ||
Library | ||
opt | ||
Description | ||
The The argument offset is the offset into the array of command line arguments at which to start processing. The number of arguments is given by argc and the array of
This function is called in the event that an error is detected in parsing the command line options. This function is passed the argument txt which is the text of the argument that caused the error. The function should return with a zero if the error can be ignored or a non-zero number to halt further processing of the command line. If there is no user-defined error function, then the final argument should be set to | ||
Returns | ||
Returns zero on success. On error, (-1) is returned. | ||
Errors | ||
On error, (-1) is returned. | ||
Example | ||
|