Cobalt Framework
beta
Console application support
|
Define parser function for CBCommandLine. More...
Go to the source code of this file.
Functions | |
struct CBCommandLine * | CBParseCommandLine (const struct CBCommandLineForm *form, unsigned int argc, const char *argv[], struct CNResource *resource, struct CBError *error) |
Parse command line and allocate CBCommandLine to store result. |
Define parser function for CBCommandLine.
struct CBCommandLine* CBParseCommandLine | ( | const struct CBCommandLineForm * | form, |
unsigned int | argc, | ||
const char * | argv[], | ||
struct CNResource * | resource, | ||
struct CBError * | error | ||
) | [read] |
Parse command line and allocate CBCommandLine to store result.
cmd | Command line object |
NULL | Parse failed. The error information will be stored to "error" parameter |
form | Form of command line |
argc | Count of command line arguments |
argv | Array of command line arguments |
resource | Resource to allocate command line information |
error | Error information. If you give NULL, no information is stored |