| 1 | /* Declarations for getopt.
|
|---|
| 2 | Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000,
|
|---|
| 3 | 2002 Free Software Foundation, Inc.
|
|---|
| 4 |
|
|---|
| 5 | NOTE: The canonical source of this file is maintained with the GNU C Library.
|
|---|
| 6 | Bugs can be reported to [email protected].
|
|---|
| 7 |
|
|---|
| 8 | This program is free software; you can redistribute it and/or modify it
|
|---|
| 9 | under the terms of the GNU General Public License as published by the
|
|---|
| 10 | Free Software Foundation; either version 2, or (at your option) any
|
|---|
| 11 | later version.
|
|---|
| 12 |
|
|---|
| 13 | This program is distributed in the hope that it will be useful,
|
|---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | GNU General Public License for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License
|
|---|
| 19 | along with this program; if not, write to the Free Software
|
|---|
| 20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|---|
| 21 | USA. */
|
|---|
| 22 |
|
|---|
| 23 | #ifndef _GETOPT_H
|
|---|
| 24 | #define _GETOPT_H 1
|
|---|
| 25 |
|
|---|
| 26 | #ifdef __cplusplus
|
|---|
| 27 | extern "C" {
|
|---|
| 28 | #endif
|
|---|
| 29 |
|
|---|
| 30 | /* For communication from `getopt' to the caller.
|
|---|
| 31 | When `getopt' finds an option that takes an argument,
|
|---|
| 32 | the argument value is returned here.
|
|---|
| 33 | Also, when `ordering' is RETURN_IN_ORDER,
|
|---|
| 34 | each non-option ARGV-element is returned here. */
|
|---|
| 35 |
|
|---|
| 36 | extern char *optarg;
|
|---|
| 37 |
|
|---|
| 38 | /* Index in ARGV of the next element to be scanned.
|
|---|
| 39 | This is used for communication to and from the caller
|
|---|
|
|---|