Main Page   Modules   Data Structures   File List   Data Fields   Globals  

C_libs/io/std_io/parse_arg.c File Reference

Utilities to handle arguments. More...

#include <stdio.h>
#include <string.h>
#include <alloc.h>
#include <data_io.h>
#include <soft_version.h>
#include <gendef.h>

Go to the source code of this file.

Defines

#define OPTION_MAXSIZE   25
#define DEFVALUE_MAXSIZE   2048
#define set_arglabel(arglabel)   strcpy(pt_ArgLabels[j],arglabel);
#define set_argval(argvalue)

Functions

int set_arglist (char *arg_label)
int set_purpose (char *text)
int parse_arg (char **argv, int argno, char ***pt_arglabel, char ***pt_argval)
void get_argval (int i, char *format, void *value)

Variables

int DEBUG = 0
int VERBOSE = 1
int TK = 0
int PROGRESS = 20
int ASK = 1
int ASK_BACK = 0
char ** pt_ArgLabels = NULL
char ** pt_ArgValues = NULL
char StandardArg_List [][OPTION_MAXSIZE]
int StandardList_Length = 9
char ** Arg_List
char ** DefVal_List
int List_Length
char * General_Purpose = NULL
char soft_version []
char Calling_Prog []


Detailed Description

Utilities to handle arguments.

Author:
A. Pecontal
Keywords:
None
Version:
4.0 1994-May-31 : Creation, AR
Copyright:
(c) 1993 Observatoire de Lyon - St Genis Laval (France)

Definition in file parse_arg.c.


Define Documentation

#define OPTION_MAXSIZE   25
 

Definition at line 18 of file parse_arg.c.

#define DEFVALUE_MAXSIZE   2048
 

Definition at line 19 of file parse_arg.c.

Referenced by parse_arg(), and set_arglist().


Variable Documentation

int DEBUG = 0
 

Definition at line 21 of file parse_arg.c.

Referenced by parse_arg().

int VERBOSE = 1
 

Definition at line 22 of file parse_arg.c.

Referenced by parse_arg().

int TK = 0
 

Definition at line 23 of file parse_arg.c.

int PROGRESS = 20
 

Definition at line 24 of file parse_arg.c.

int ASK = 1
 

Definition at line 25 of file parse_arg.c.

int ASK_BACK = 0
 

Definition at line 26 of file parse_arg.c.

Referenced by confirme_erase(), sig_usr1(), and sig_usr2().

char** pt_ArgValues = NULL
 

Definition at line 29 of file parse_arg.c.

Referenced by get_argval(), and parse_arg().

char StandardArg_List[][OPTION_MAXSIZE]
 

Initial value:

 {
        "-h",
        "-help",
        "-inputformat",
        "-outputformat",
        "-version",
        "-debug",
        "-tk",
        "-quiet",
        "-noask"
}

Definition at line 31 of file parse_arg.c.

Referenced by parse_arg().

int StandardList_Length = 9
 

Definition at line 42 of file parse_arg.c.

Referenced by parse_arg().

char** Arg_List
 

Definition at line 44 of file parse_arg.c.

Referenced by parse_arg(), and set_arglist().

char** DefVal_List
 

Definition at line 45 of file parse_arg.c.

Referenced by parse_arg(), and set_arglist().

char* General_Purpose = NULL
 

Definition at line 48 of file parse_arg.c.

Referenced by parse_arg(), and set_purpose().


Generated on Tue Jul 1 17:35:46 2003 for IFU_C_iolibs by doxygen1.3