| Revision 1733,
748 bytes
checked in by sam, 6 years ago
(diff) |
- Reimplemented getopt_long. We use our replacement even if simple getopt
is available on the operating system.
|
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * zzuf - general purpose fuzzer |
|---|
| 3 | * Copyright (c) 2002, 2007 Sam Hocevar <sam@zoy.org> |
|---|
| 4 | * All Rights Reserved |
|---|
| 5 | * |
|---|
| 6 | * $Id$ |
|---|
| 7 | * |
|---|
| 8 | * This program is free software. It comes without any warranty, to |
|---|
| 9 | * the extent permitted by applicable law. You can redistribute it |
|---|
| 10 | * and/or modify it under the terms of the Do What The Fuck You Want |
|---|
| 11 | * To Public License, Version 2, as published by Sam Hocevar. See |
|---|
| 12 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
|---|
| 13 | */ |
|---|
| 14 | |
|---|
| 15 | /* |
|---|
| 16 | * mygetopt.h: getopt_long reimplementation |
|---|
| 17 | */ |
|---|
| 18 | |
|---|
| 19 | struct myoption |
|---|
| 20 | { |
|---|
| 21 | const char *name; |
|---|
| 22 | int has_arg; |
|---|
| 23 | int *flag; |
|---|
| 24 | int val; |
|---|
| 25 | }; |
|---|
| 26 | |
|---|
| 27 | extern int myoptind; |
|---|
| 28 | extern char *myoptarg; |
|---|
| 29 | |
|---|
| 30 | int mygetopt(int, char * const[], const char *, const struct myoption *, int *); |
|---|
| 31 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.