/*
* getopt-support.h -- getopt support header
* (C)Copyright 2000, 2001 by Hiroshi Takekawa
* This file is part of multiskkserv.
*
* Last Modified: Fri Dec 7 23:03:58 2001.
* $Id: getopt-support.h,v 1.1 2002/01/12 21:11:04 sian Exp $
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifndef _GETOPT_SUPPORT_H
#define _GETOPT_SUPPORT_H
typedef enum _argument_requirement {
_NO_ARGUMENT,
_REQUIRED_ARGUMENT,
_OPTIONAL_ARGUMENT
} ArgumentRequirement;
typedef struct _option {
const char *longopt; /* not supported so far */
char opt;
ArgumentRequirement argreq;
const unsigned char *description;
} Option;
char *gen_optstring(Option []);
void print_option_usage(Option []);
#endif
syntax highlighted by Code2HTML, v. 0.9.1