This commit is contained in:
hyung-hwan 2008-03-18 06:23:56 +00:00
parent fa1837d905
commit 925bc6a30a

View File

@ -1,34 +1,39 @@
/*
#ifndef _ASE_UTL_GETOPT_H_ * $Id: getopt.h 136 2008-03-17 12:23:56Z baconevi $
#define _ASE_UTL_GETOPT_H_ *
* {License}
#include <ase/cmn/types.h> */
#include <ase/cmn/macros.h>
#ifndef _ASE_UTL_GETOPT_H_
typedef struct ase_opt_t ase_opt_t; #define _ASE_UTL_GETOPT_H_
struct ase_opt_t #include <ase/cmn/types.h>
{ #include <ase/cmn/macros.h>
/* input */
const ase_char_t* str; typedef struct ase_opt_t ase_opt_t;
/* output */ struct ase_opt_t
ase_cint_t opt; /* character checked for validity */ {
ase_char_t* arg; /* argument associated with an option */ /* input */
int err; const ase_char_t* str;
/* input + output */ /* output */
int ind; /* index into parent argv vector */ ase_cint_t opt; /* character checked for validity */
}; ase_char_t* arg; /* argument associated with an option */
int err;
#ifdef __cplusplus
extern "C" { /* input + output */
#endif int ind; /* index into parent argv vector */
};
ase_cint_t ase_getopt (int argc, ase_char_t* argv[], ase_opt_t* opt);
#ifdef __cplusplus
#ifdef __cplusplus extern "C" {
} #endif
#endif
ase_cint_t ase_getopt (int argc, ase_char_t* argv[], ase_opt_t* opt);
#endif
#ifdef __cplusplus
}
#endif
#endif