Diffusion C API
6.10.0
|
Utilities for parsing command line arguments, as used in the examples. More...
Data Structures | |
struct | arg_opts_s |
This structure represents a possible argument to an application. More... | |
Macros | |
#define | ARG_REQUIRED |
The argument is mandatory. More... | |
#define | ARG_OPTIONAL |
The argument is optional. More... | |
#define | ARG_HAS_VALUE |
The argument is followed by a value. More... | |
#define | ARG_NO_VALUE |
The argument is not followed by a value. More... | |
#define | ARG_OPTS_HELP |
Default argument declaration for "help". More... | |
#define | END_OF_ARG_OPTS |
Default "end of arguments" declaration. More... | |
Typedefs | |
typedef struct arg_opts_s | ARG_OPTS_T |
This structure represents a possible argument to an application. | |
Functions | |
HASH_T * | parse_cmdline (int argc, char **argv, ARG_OPTS_T *arg_opts) |
Parse argc/argv according to an array of ARG_OPTS_T (which itself is terminated by a entry in the form of END_OF_ARG_OPTS). | |
void | show_usage (int argc, char **argv, ARG_OPTS_T *arg_opts) |
Display usage information to stdout. | |
Utilities for parsing command line arguments, as used in the examples.
Copyright © 2014 - 2023 DiffusionData Ltd., All Rights Reserved.
Use is subject to licence terms.
NOTICE: All information contained herein is, and remains the property of DiffusionData. The intellectual and technical concepts contained herein are proprietary to DiffusionData and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law.
#define ARG_HAS_VALUE |
The argument is followed by a value.
#define ARG_NO_VALUE |
The argument is not followed by a value.
#define ARG_OPTIONAL |
The argument is optional.
#define ARG_OPTS_HELP |
Default argument declaration for "help".
#define ARG_REQUIRED |
The argument is mandatory.
#define END_OF_ARG_OPTS |
Default "end of arguments" declaration.