TF++, Miscellaneous classes and modules in C++:

◆ next()

char* tfxx::cmdline::Commandline::next ( )
inline

returns char-array of next commandline argument

Examples:
tests/commandlinetest.cc.

Definition at line 243 of file commandline.h.

References Margv, Miargc, and Moptind.

Referenced by main(), and tfxx::cmdline::parse_cmdline().

244  { if (Moptind<Miargc) {return(Margv[Moptind++]);} else {return(NULL);} }
char ** Margv
Pointer to array of command line strings (as passed to main)
Definition: commandline.h:277
int Miargc
Number of command line strings (as passed to main)
Definition: commandline.h:275
int Moptind
Next option string to read after last defined option.
Definition: commandline.h:279
Here is the caller graph for this function: