Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

getopt.c File Reference

GNU's command line options parser. More...

#include <stdio.h>
#include "getopt.h"
#include <strings.h>

Include dependency graph for getopt.c:

Include dependency graph

Defines

#define GETOPT_INTERFACE_VERSION   2
#define _(msgid)   (msgid)
#define SWAP_FLAGS(ch1, ch2)
#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')

Enumerations

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }

Functions

char * getenv ()
char * my_index (str, chr) const char *str
void exchange (argv) char **argv

Variables

char * optarg
int optind = 1
int __getopt_initialized attribute_hidden
char * nextchar
int opterr = 1
int optopt = '?'
enum { ... }  ordering
char * posixly_correct
int chr
int last_nonopt
char *const * argv
const char * optstring
const struct optionlongopts
int * longind
int long_only

Detailed Description

GNU's command line options parser.

Author:
GNU
Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003 Free Software Foundation, Inc. This file is part of the GNU C Library.

The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

The GNU C Library 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.


Define Documentation

#define _ msgid   )     (msgid)
 

#define GETOPT_INTERFACE_VERSION   2
 

#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')
 

#define SWAP_FLAGS ch1,
ch2   ) 
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 


Function Documentation

void exchange argv   )  [static]
 

char* getenv  ) 
 

char* my_index str  ,
chr 
const [static]
 


Variable Documentation

char *const * argv
 

int __getopt_initialized attribute_hidden
 

int chr
 

int last_nonopt [static]
 

int long_only
 

int* longind
 

const struct option* longopts
 

char* nextchar [static]
 

char* optarg
 

int opterr = 1
 

int optind = 1
 

int optopt = '?'
 

const char * optstring
 

enum { ... } ordering [static]
 

char* posixly_correct [static]
 


Generated on Thu Apr 7 01:55:57 2005 for StripeSnoop by doxygen 1.3.3