44 #define ISSPACE _istspace 46 #define ISSPACE isspace 54 #define ARG_REX_ICASE 1 64 typedef void (arg_resetfn)(
void *parent);
65 typedef int (arg_scanfn)(
void *parent,
const char *argval);
66 typedef int (arg_checkfn)(
void *parent);
67 typedef void (arg_errorfn)(
void *parent, FILE *fp,
int error,
const char *argval,
const char *progname);
90 const char *shortopts;
100 arg_errorfn *errorfn;
147 const char **filename;
148 const char **basename;
149 const char **extension;
160 enum {ARG_ELIMIT=1, ARG_EMALLOC, ARG_ENOMATCH, ARG_ELONGOPT, ARG_EMISSARG};
173 struct arg_rem*
arg_rem(
const char* datatype,
const char* glossary);
175 struct arg_lit* arg_lit0(
const char* shortopts,
176 const char* longopts,
177 const char* glossary);
178 struct arg_lit* arg_lit1(
const char* shortopts,
179 const char* longopts,
180 const char *glossary);
181 struct arg_lit* arg_litn(
const char* shortopts,
182 const char* longopts,
185 const char *glossary);
187 struct arg_key* arg_key0(
const char* keyword,
189 const char* glossary);
190 struct arg_key* arg_key1(
const char* keyword,
192 const char* glossary);
193 struct arg_key* arg_keyn(
const char* keyword,
197 const char* glossary);
199 struct arg_int* arg_int0(
const char* shortopts,
200 const char* longopts,
201 const char* datatype,
202 const char* glossary);
203 struct arg_int* arg_int1(
const char* shortopts,
204 const char* longopts,
205 const char* datatype,
206 const char *glossary);
207 struct arg_int* arg_intn(
const char* shortopts,
208 const char* longopts,
209 const char *datatype,
212 const char *glossary);
214 struct arg_dbl* arg_dbl0(
const char* shortopts,
215 const char* longopts,
216 const char* datatype,
217 const char* glossary);
218 struct arg_dbl* arg_dbl1(
const char* shortopts,
219 const char* longopts,
220 const char* datatype,
221 const char *glossary);
222 struct arg_dbl* arg_dbln(
const char* shortopts,
223 const char* longopts,
224 const char *datatype,
227 const char *glossary);
229 struct arg_str* arg_str0(
const char* shortopts,
230 const char* longopts,
231 const char* datatype,
232 const char* glossary);
233 struct arg_str* arg_str1(
const char* shortopts,
234 const char* longopts,
235 const char* datatype,
236 const char *glossary);
237 struct arg_str* arg_strn(
const char* shortopts,
238 const char* longopts,
239 const char* datatype,
242 const char *glossary);
244 struct arg_rex* arg_rex0(
const char* shortopts,
245 const char* longopts,
247 const char* datatype,
249 const char* glossary);
250 struct arg_rex* arg_rex1(
const char* shortopts,
251 const char* longopts,
253 const char* datatype,
255 const char *glossary);
256 struct arg_rex* arg_rexn(
const char* shortopts,
257 const char* longopts,
259 const char* datatype,
263 const char *glossary);
265 struct arg_file* arg_file0(
const char* shortopts,
266 const char* longopts,
267 const char* datatype,
268 const char* glossary);
269 struct arg_file* arg_file1(
const char* shortopts,
270 const char* longopts,
271 const char* datatype,
272 const char *glossary);
273 struct arg_file* arg_filen(
const char* shortopts,
274 const char* longopts,
275 const char* datatype,
278 const char *glossary);
280 struct arg_date* arg_date0(
const char* shortopts,
281 const char* longopts,
283 const char* datatype,
284 const char* glossary);
285 struct arg_date* arg_date1(
const char* shortopts,
286 const char* longopts,
288 const char* datatype,
289 const char *glossary);
290 struct arg_date* arg_daten(
const char* shortopts,
291 const char* longopts,
293 const char* datatype,
296 const char *glossary);
301 int arg_nullcheck(
void **argtable);
302 int arg_parse(
int argc,
char **argv,
void **argtable);
303 void arg_print_option(FILE *fp,
const char *shortopts,
const char *longopts,
const char *datatype,
const char *suffix);
304 void arg_print_syntax(FILE *fp,
void **argtable,
const char *suffix);
305 void arg_print_syntaxv(FILE *fp,
void **argtable,
const char *suffix);
306 void arg_print_glossary(FILE *fp,
void **argtable,
const char *format);
307 void arg_print_glossary_gnu(FILE *fp,
void **argtable);
308 void arg_print_errors(FILE* fp,
struct arg_end* end,
const char* progname);
309 void arg_freetable(
void **argtable,
size_t n);
310 void arg_print_formatted(FILE *fp,
const unsigned lmargin,
const unsigned rmargin,
const char *text);
313 void arg_free(
void **argtable);
Definition: argtable3.h:152
Definition: argtable3.h:87
Definition: argtable3.h:129
Definition: argtable3.h:161
Lowest level header file. Header file for lowlevel.c.
Definition: argtable3.h:104
Definition: argtable3.h:143
Definition: argtable3.h:122
Definition: argtable3.h:115
Definition: argtable3.h:136
Definition: argtable3.h:109