source: libpipi/trunk/genethumb/mygetopt.h @ 3522

Last change on this file since 3522 was 3522, checked in by Sam Hocevar, 11 years ago

Make img2twit more configurable: iterations per second and debug mode can
now be chosen at runtime. Message length will soon be.

File size: 859 bytes
Line 
1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2002, 2007 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id: mygetopt.h 268 2007-02-01 22:33:07Z sam $
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#ifdef __cplusplus
20extern "C"
21{
22#endif
23
24struct myoption
25{
26    const char *name;
27    int has_arg;
28    int *flag;
29    int val;
30};
31
32extern int myoptind;
33extern char *myoptarg;
34
35int mygetopt(int, char * const[], const char *, const struct myoption *, int *);
36
37#ifdef __cplusplus
38}
39#endif
40
Note: See TracBrowser for help on using the repository browser.