| 1 |
/* |
| 2 |
* getopt.h |
| 3 |
* |
| 4 |
* 07/13/07 ARCress - created. |
| 5 |
* |
| 6 |
Copyright (c) 2007 Andy Cress <arcress at users.sourceforge.net> |
| 7 |
BSD-3-clause |
| 8 |
|
| 9 |
Redistribution and use in source and binary forms, with or without |
| 10 |
modification, are permitted provided that the following conditions are met: |
| 11 |
a. Redistributions of source code must retain the above copyright notice, |
| 12 |
this list of conditions and the following disclaimer. |
| 13 |
b. Redistributions in binary form must reproduce the above copyright notice, |
| 14 |
this list of conditions and the following disclaimer in the documentation |
| 15 |
and/or other materials provided with the distribution. |
| 16 |
c. Neither the name of Kontron, nor the names of its |
| 17 |
contributors may be used to endorse or promote products derived from |
| 18 |
this software without specific prior written permission. |
| 19 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 20 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 21 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 22 |
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR |
| 23 |
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 24 |
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 26 |
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 28 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 |
*/ |
| 30 |
#ifndef _GETOPT_H_ |
| 31 |
#define _GETOPT_H_ |
| 32 |
|
| 33 |
extern int getopt(int argc, char **argv, char *opts); |
| 34 |
|
| 35 |
extern int optind; |
| 36 |
extern int optopt; |
| 37 |
extern int opterr; |
| 38 |
extern char *optarg; |
| 39 |
|
| 40 |
#endif |