picox  0.1
xargparser.h
[詳解]
1 
14 /*
15  * License: MIT license
16  * Copyright (c) <2015> <MaskedW [maskedw00@gmail.com]>
17  *
18  * Permission is hereby granted, free of charge, to any person
19  * obtaining a copy of this software and associated documentation
20  * files (the "Software"), to deal in the Software without
21  * restriction, including without limitation the rights to use, copy,
22  * modify, merge, publish, distribute, sublicense, and/or sell copies
23  * of the Software, and to permit persons to whom the Software is
24  * furnished to do so, subject to the following conditions:
25  *
26  * The above copyright notice and this permission notice shall be
27  * included in all copies or substantial portions of the Software.
28  *
29  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
32  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
33  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
34  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
35  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36  * SOFTWARE.
37  */
38 
39 
40 #ifndef picox_misc_xargparser_h_
41 #define picox_misc_xargparser_h_
42 
43 
44 #include <picox/core/xcore.h>
45 
46 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
59 
60 typedef enum XArgParserErr
61 {
62  X_ARG_PARSER_ERR_NONE,
68 
69 
88 XArgParserErr xargparser_to_argv(char* str, int* argc, char* argv[], int max_argc);
89 
90 
93 const char* xargparser_err_to_string(XArgParserErr err);
94 
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 
106 #endif // picox_misc_xargparser_h_
Definition: xargparser.h:64
Definition: xargparser.h:65
Definition: xargparser.h:63
XArgParserErr
Definition: xargparser.h:60
Definition: xargparser.h:66
XArgParserErr xargparser_to_argv(char *str, int *argc, char *argv[], int max_argc)
strを解析してargvを設定します。
const char * xargparser_err_to_string(XArgParserErr err)
エラーステータスの文字列表現を返します。