Last change
on this file since 2444 was
2444,
checked in by Jean-Yves Lamoureux, 15 years ago
|
- Changed command line parsing to sam's mygetopt.c
|
File size:
861 bytes
|
Rev | Line | |
---|
[2444] | 1 | /* |
---|
| 2 | * neercs console-based window manager |
---|
| 3 | * Copyright (c) 2006 Sam Hocevar <sam@zoy.org> |
---|
| 4 | * 2008 Jean-Yves Lamoureux <jylam@lnxscene.org> |
---|
| 5 | * All Rights Reserved |
---|
| 6 | * |
---|
| 7 | * $Id: mygetopt.h 268 2007-02-01 22:33:07Z sam $ |
---|
| 8 | * |
---|
| 9 | * This program is free software. It comes without any warranty, to |
---|
| 10 | * the extent permitted by applicable law. You can redistribute it |
---|
| 11 | * and/or modify it under the terms of the Do What The Fuck You Want |
---|
| 12 | * To Public License, Version 2, as published by Sam Hocevar. See |
---|
| 13 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | /* |
---|
| 17 | * mygetopt.h: getopt_long reimplementation |
---|
| 18 | */ |
---|
| 19 | |
---|
| 20 | struct myoption |
---|
| 21 | { |
---|
| 22 | const char *name; |
---|
| 23 | int has_arg; |
---|
| 24 | int *flag; |
---|
| 25 | int val; |
---|
| 26 | }; |
---|
| 27 | |
---|
| 28 | extern int myoptind; |
---|
| 29 | extern char *myoptarg; |
---|
| 30 | |
---|
| 31 | int mygetopt(int, char * const[], const char *, const struct myoption *, int *); |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.