2 * Copyright 2004-2012 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
12 /* This header defines the available GNU extensions to the getopt() functionality */
21 /* Options for the "has_arg" field */
24 #define required_argument 1
25 #define optional_argument 2
32 extern int getopt_long(int argc
, char * const *argv
, const char *shortOptions
,
33 const struct option
*longOptions
, int *_longIndex
);
34 extern int getopt_long_only(int argc
, char * const *argv
, const char *shortOptions
,
35 const struct option
*longOptions
, int *_longIndex
);
41 #endif /* _GETOPT_H */