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 2004/07/15 14:34:31 alextingle
00030 Global variables are now declared extern "C".
00031
00032 Revision 1.1 2003/12/21 16:19:49 alextingle
00033 Moved into 'src' directory as part of the change to POA implementation.
00034
00035 Revision 1.2 2003/11/03 22:36:48 alextingle
00036 Updated License to GNU Lesser General Public v2.1
00037
00038 Revision 1.1.1.1 2002/09/25 19:00:32 shamus13
00039 Import of OmniEvents source tree from release 2.1.1
00040
00041 Revision 1.4 2000/09/24 07:17:12 naderp
00042 Fixed file comment.
00043
00044 Revision 1.3 1999/04/23 16:04:53 naderp
00045 *** empty log message ***
00046
00047 * Revision 1.2 99/04/23 12:11:20 12:11:20 naderp (Paul Nader)
00048 * *** empty log message ***
00049 *
00050 * Revision 1.1 99/04/23 09:36:25 09:36:25 naderp (Paul Nader)
00051 * Initial revision
00052 *
00053 */
00054
00055 #ifndef __GETOPT_H
00056 #define __GETOPT_H
00057
00058 extern "C"
00059 {
00060 extern int optind; // Index: welches Argument ist das naechste
00061 extern char* optarg; // Zeiger auf das Argument der akt. Option
00062 extern int opterr; // erlaubt Fehlermeldungen
00063 }
00064
00065 int getopt(int argc, char *argv[], const char *optionS);
00066
00067 #endif /* __GETOPT_H */
1.2.15