资 源 简 介
superGetOpt
SuperGetOpt is a printf-like getopt replacement for command line argument handling.
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[MAX_STRING];
n = superGetOpt( argc, argv, &argPos, "-YourFlag %f%s%d", &yourFloat, yourString, &yourInt, "Help Message", NULL );
return(n);
}
```
It"s that easy. No header files to create, no argument order to concern yourself with.
Please read the testSuperGetOpt.c example and you"ll