JVM Languages
argv.txt
Associated article: Command-Line Argument Processing & the Argv Library
Tags: JVM Languages
Published source code accompanying the article by Oliver Goldman in which he presents Argv, a Java-based argument handling library that can parse argument types and string values, and be extended to handle more complex cases. Also see ARGV.ZIP.
Command-Line Argument Processing and the Argv Library
by Oliver Goldman
Listing One
int main( int argc, char **argv ) {
int c;
extern char *optarg;
extern int optind;
int aflg = 0;
int bflg = 0;
int errflg = 0;
char *ofile = NULL;
while ((c = getopt(argc, argv, &...


