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

const char* Clp_Shift ( Clp_Parser clp,
int  allow_options 

Return the next argument from clp without option parsing.

clp the parser
allow_options whether options will be allowed
Remove and return the next argument from clp's argument array. If there are no arguments left, or if the next argument is an option and allow_options != 0, then returns null.

Definition at line 1940 of file clp.c.

References Clp_Parser::have_val, and Clp_Parser::vstr.

    Clp_ParserState clpsave;
    Clp_SaveParser(clp, &clpsave);
    next_argument(clp, allow_options ? 2 : 1);
    if (!clp->have_val)
      Clp_RestoreParser(clp, &clpsave);
    return clp->vstr;

Generated by  Doxygen 1.6.0   Back to index