Debian Codegraph @

contrib/ms-sbvar/utilities_dw/include/dw_parse_cmd.h

raw
1 /*
2 * Copyright (C) 1996-2011 Daniel Waggoner
3 *
4 * This free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * It is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * If you did not received a copy of the GNU General Public License
15 * with this software, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __PARSE_COMMAND_LINE__
19 #define __PARSE_COMMAND_LINE__
20
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25
26 int dw_FindArgument(int nargs, char **args, char opt);
27 int dw_ParseInteger(int nargs, char **args, char opt, int def);
28 double dw_ParseFloating(int nargs, char **args, char opt, double def);
29 char* dw_ParseString(int nargs, char **args, char opt, const char *def);
30
31 int dw_FindArgument_String(int nargs, char **args, const char *opt);
32 int dw_ParseInteger_String(int nargs, char **args, const char *opt, int def);
33 double dw_ParseFloating_String(int nargs, char **args, const char *opt, double def);
34 char* dw_ParseString_String(int nargs, char **args, const char *opt, const char *def);
35
36 #ifdef __cplusplus
37 }
38 #endif
39
40 #endif