#define no_argument 0\r
#define required_argument 1\r
#define optional_argument 2\r
-\r
-struct option\r
-{\r
- const char *name; /* name of the long option */\r
- \r
- int has_arg; /*\r
- * has_arg is : no_argument (or 0), if the option doesn't take an argument, \r
- * required_argument (or 1) if the option takes an argument,\r
- * optional_argument (or 2) if the option takes an optional argument.\r
- */\r
- \r
- int *flag; /* specify the mean used to return a result for a long option:\r
- * if flag is NULL, then getopt_long() returns val\r
- * in the other case getopt_long() returns 0, and flag points to the \r
- * variable specified bay the content of the field val when the option \r
- * is found but it is not update if the option is not found.\r
- */\r
- \r
- int val; /* val is the value returned by getopt_long() when the pointer flag\r
- * is NULL or the value of the variable referenced by the pointer flag\r
- * when the option is found.\r
- */\r
-};\r
-\r
-extern int \r
-optind;\r
-\r
-extern char* \r
-optarg;\r
-\r
-extern int \r
-opterr;\r
-\r
-extern int \r
-optopt;\r
-\r
-\r
-int \r
-getopt (int argc, char * const argv[], const char *optstring);\r
-\r
-int\r
-getopt_long(int argc, char * const argv[], const char *optstring, const struct option *longopts, int *longindex);\r
-\r
-int\r
-getopt_long_only (int argc, char * const argv[], const char *optstring, const struct option *longopts, int *longindex);\r
-\r
-\r
-#endif /* !__GETOPT_H */\r
+\rstruct option \r {
+ \rconst char *name; /* name of the long option */
+ \r \r int has_arg; /*\r
+ * has_arg is : no_argument (or 0), if the option doesn't take an argument, \r
+ * required_argument (or 1) if the option takes an argument,\r
+ * optional_argument (or 2) if the option takes an optional argument.\r
+ */
+ \r \r int *flag; /* specify the mean used to return a result for a long option:\r
+ * if flag is NULL, then getopt_long() returns val\r
+ * in the other case getopt_long() returns 0, and flag points to the \r
+ * variable specified bay the content of the field val when the option \r
+ * is found but it is not update if the option is not found.\r
+ */
+ \r \r int val; /* val is the value returned by getopt_long() when the pointer flag\r
+ * is NULL or the value of the variable referenced by the pointer flag\r
+ * when the option is found.\r
+ */
+\r};
+\r\rextern int \r optind;
+\r\rextern char *\r optarg;
+\r\rextern int \r opterr;
+\r\rextern int \r optopt;
+\r\r\rint \r getopt(int argc, char *const argv[], const char *optstring);
+\r\rint \r
+getopt_long(int argc, char *const argv[], const char *optstring,
+ const struct option *longopts, int *longindex);
+\r\rint \r getopt_long_only(int argc, char *const argv[],
+ const char *optstring,
+ const struct option *longopts, int *longindex);
+\r\r\r
+#endif /* !__GETOPT_H */\r