Logo Search packages:      
Sourcecode: t1utils version File versions  Download package

void Clp_SetArguments ( Clp_Parser clp,
int  argc,
const char *const *  argv 
)

Set clp's arguments.

Parameters:
clp the parser
argc number of arguments
argv argument array
Installs the arguments in argv for parsing. Future option parsing will analyze argv.

Unlike Clp_NewParser(), this function does not treat argv[0] specially. The first subsequent call to Clp_Next() will analyze argv[0].

This function also sets option processing to on, as by Clp_SetOptionProcessing(clp, 1).

Note:
The CLP library will not modify the contents of argv. The calling program should not generally modify the element of argv that CLP is currently analyzing.

Definition at line 844 of file clp.c.

References Clp_Parser::internal.

{
    Clp_Internal *cli = clp->internal;

    cli->argc = argc + 1;
    cli->argv = argv - 1;

    cli->is_short = 0;
    cli->whole_negated = 0;
    cli->option_processing = 1;
    cli->current_option = -1;
}


Generated by  Doxygen 1.6.0   Back to index