00001 // -*- Mode: C++; -*- 00002 // Package : omniEvents 00003 // getopt.h Created : 1/4/98 00004 // Author : Paul Nader (pwn) 00005 // 00006 // Copyright (C) 1998 Paul Nader. 00007 // 00008 // This file is part of the omniEvents application. 00009 // 00010 // omniEvents is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Lesser General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2.1 of the License, or (at your option) any later version. 00014 // 00015 // omniEvents is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 // 00024 // Description: 00025 // 00026 00027 /* 00028 $Log: getopt.h,v $ 00029 Revision 1.2 2003/11/03 22:36:48 alextingle 00030 Updated License to GNU Lesser General Public v2.1 00031 00032 Revision 1.1.1.1 2002/09/25 19:00:32 shamus13 00033 Import of OmniEvents source tree from release 2.1.1 00034 00035 Revision 1.4 2000/09/24 07:17:12 naderp 00036 Fixed file comment. 00037 00038 Revision 1.3 1999/04/23 16:04:53 naderp 00039 *** empty log message *** 00040 00041 * Revision 1.2 99/04/23 12:11:20 12:11:20 naderp (Paul Nader) 00042 * *** empty log message *** 00043 * 00044 * Revision 1.1 99/04/23 09:36:25 09:36:25 naderp (Paul Nader) 00045 * Initial revision 00046 * 00047 */ 00048 00049 #ifndef __GETOPT_H 00050 #define __GETOPT_H 00051 00052 00053 extern int optind; // Index: welches Argument ist das naechste 00054 extern char* optarg; // Zeiger auf das Argument der akt. Option 00055 extern int opterr; // erlaubt Fehlermeldungen 00056 extern int getopt(int argc, char *argv[], const char *optionS); 00057 00058 #endif /* __GETOPT_H */