00001 #ifndef CMDOPT_H
00002 #define CMDOPT_H
00003
00004
00005
00013
00014
00015
00016
00017 #include <stdlib.h>
00018 #include <stdio.h>
00019 #include <string.h>
00020 #include <ctype.h>
00021
00022
00023
00024 #ifdef __cplusplus
00025 namespace RazorBack { extern "C" {
00026 #endif
00027
00046 void parse_optstr(char *Cmdoptstr);
00047
00059 int get_options(int argc, char *const *argv);
00060
00071 int optval_bool(char Och);
00072 int optval_int(char Och, int *Val);
00073 int optval_dbl(char Och, double *Val);
00074 int optval_str(char Och, char **Val);
00075
00089 int opt_defval(char Och, void *Val, const void *Defval);
00090
00101 char *opt_helpstr(void);
00102
00103 #ifdef __cplusplus
00104 } }
00105 #endif
00106
00107
00108
00109 #endif