Idź do dokumentacji tego pliku.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _GETOPT_H
00023
00024 #ifndef __need_getopt
00025 # define _GETOPT_H 1
00026 #endif
00027
00028 #if !defined __GNU_LIBRARY__
00029 # include <ctype.h>
00030 #endif
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036 extern char *optarg;
00037
00038 extern int optind;
00039
00040 extern int opterr;
00041
00042 extern int optopt;
00043
00044 #ifndef __need_getopt
00045 struct option
00046 {
00047 # if (defined __STDC__ && __STDC__) || defined __cplusplus
00048 const char *name;
00049 # else
00050 char *name;
00051 # endif
00052 int has_arg;
00053 int *flag;
00054 int val;
00055 };
00056
00057 # define no_argument 0
00058 # define required_argument 1
00059 # define optional_argument 2
00060 #endif
00061
00062 #if (defined __STDC__ && __STDC__) || defined __cplusplus
00063 # ifdef __GNU_LIBRARY__
00064 extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
00065 # else
00066 extern int getopt ();
00067 # endif
00068
00069 # ifndef __need_getopt
00070 extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
00071 const struct option *__longopts, int *__longind);
00072 extern int getopt_long_only (int __argc, char *const *__argv,
00073 const char *__shortopts,
00074 const struct option *__longopts, int *__longind);
00075
00076
00077 extern int _getopt_internal (int __argc, char *const *__argv,
00078 const char *__shortopts,
00079 const struct option *__longopts, int *__longind,
00080 int __long_only);
00081 # endif
00082 #else
00083 extern int getopt ();
00084 # ifndef __need_getopt
00085 extern int getopt_long ();
00086 extern int getopt_long_only ();
00087
00088 extern int _getopt_internal ();
00089 # endif
00090 #endif
00091
00092 #ifdef __cplusplus
00093 }
00094 #endif
00095
00096 #undef __need_getopt
00097
00098 #endif
00099
00100
00101
00102
00103
00104
00105
00106
00107