ZEDA  1.6.18
Data Structures | Macros | Functions
zeda_option.h File Reference

command line option manipulation. More...

#include <ctype.h>
#include <zeda/zeda_strlist.h>
Include dependency graph for zeda_option.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  zOption
 command line option information. More...
 

Macros

#define Z_INTRANGE_BORDER   (-1)
 
#define zIsOption(o)   ( ( (o)[0] == '-' ) && !isdigit( (o)[1] ) && (o)[1] != '-' )
 check if an argument string is an option switch. More...
 

Functions

void zOptionHelp (zOption *opts)
 display a command line help. More...
 
void zOptionDiag (zOption *opts)
 diagnose option flags. More...
 
bool zOptionRead (zOption *opts, char **argv, zStrAddrList *arglist)
 read command line options. More...
 
void zParseIntRange (char *expr, int *from, int *to)
 parse integer range notation. More...
 
char * zGetArg (char ***argv)
 get the next command line argument. More...
 

Detailed Description

command line option manipulation.

Author
Zhidao