source: neercs/trunk/src/mygetopt.h @ 3551

Last change on this file since 3551 was 3551, checked in by Pascal Terjan, 11 years ago
  • Add missing svn:keywords on some source files
  • Property svn:keywords set to Id
File size: 819 bytes
Line 
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 3551 2009-07-10 14:46:54Z pterjan $
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
20struct myoption
21{
22    const char *name;
23    int has_arg;
24    int *flag;
25    int val;
26};
27
28extern int myoptind;
29extern char *myoptarg;
30
31int mygetopt(int, char * const[], const char *, const struct myoption *, int *);
32
Note: See TracBrowser for help on using the repository browser.