hp2FEM  0.1
src/metis-5.0/GKlib/gk_getopt.h
Go to the documentation of this file.
00001 
00010 #ifndef _GK_GETOPT_H_
00011 #define _GK_GETOPT_H_
00012 
00013 
00014 /* Externals from getopt.c */
00015 extern char *gk_optarg;
00016 extern int gk_optind;
00017 extern int gk_opterr;
00018 extern int gk_optopt;
00019 
00020 
00028 struct gk_option {
00029   char *name;       
00030   int has_arg;      
00034   int *flag;        
00035   int val;          
00046 };
00047 
00048 /* Names for the values of the `has_arg' field of `struct gk_option'.  */
00049 #define no_argument             0
00050 #define required_argument       1
00051 #define optional_argument       2
00052 
00053 
00054 /* Function prototypes */
00055 extern int gk_getopt(int __argc, char **__argv, char *__shortopts);
00056 extern int gk_getopt_long(int __argc, char **__argv, char *__shortopts,
00057               struct gk_option *__longopts, int *__longind);
00058 extern int gk_getopt_long_only (int __argc, char **__argv,
00059               char *__shortopts, struct gk_option *__longopts, int *__longind);
00060 
00061 
00062 
00063 #endif
00064 
 All Classes Files Functions Variables Typedefs Friends Defines