X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trunk%2Fsrc%2Fmy_getopt.h;fp=trunk%2Fsrc%2Fmy_getopt.h;h=e8f8d1f3f04abd254430223ec2455203ae76b075;hb=b10d54ea2c267fce4e881b9d7e064427f6e6c34f;hp=0000000000000000000000000000000000000000;hpb=024a679ab580d1778f1f8fe61cc54c91cc3d5634;p=fprobe-ulog.git diff --git a/trunk/src/my_getopt.h b/trunk/src/my_getopt.h new file mode 100644 index 0000000..e8f8d1f --- /dev/null +++ b/trunk/src/my_getopt.h @@ -0,0 +1,28 @@ +/* + Copyright (C) Slava Astashonok + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License. + + $Id: my_getopt.h,v 1.1.1.1.2.3 2004/02/02 08:06:24 sla Exp $ +*/ + +#ifndef _MY_GETOPT_H_ +#define _MY_GETOPT_H_ + +#define MY_GETOPT_ARG_REQUIRED 0x1 +#define MY_GETOPT_REQUIRED 0x2 +#define MY_GETOPT_ALLOW_REPEAT 0x4 + +#define MY_GETOPT_MAX_OPTSTR 4096 + +struct getopt_parms { + char name; + int flag; + int count; + char *arg; +}; + +int my_getopt(int argc, char * const argv[], struct getopt_parms parms[]); + +#endif