...The supergetopt library makes it very easy to handle all kinds of command-line arguments in a printf()-style way.
All types of command-line arguments are supported and all user-supplied values are checked for type validity.
If you have been searching for an easy-to-use, flexible, portable command-line and general use parser, this is it!
A Simple Example:
=================
int main( int argc, char *argv[] )
{
int n, argPos;
float yourFloat;
int yourInt;
char *yourString;
n = superGetOpt( argc, argv, &argPos, "-YourFlag %f%s%d", &yourFloat, yourString, &yourInt, "Help Message", NULL );
return(n);
}
It's that easy. ...