fftools: handle errors in parse_options()

This commit is contained in:
Anton Khirnov
2023-07-14 16:43:51 +02:00
parent 49ac7fc485
commit 39d5104332
4 changed files with 27 additions and 14 deletions

View File

@@ -194,8 +194,8 @@ void show_help_default(const char *opt, const char *arg);
* argument without a leading option name flag. NULL if such arguments do
* not have to be processed.
*/
void parse_options(void *optctx, int argc, char **argv, const OptionDef *options,
void (* parse_arg_function)(void *optctx, const char*));
int parse_options(void *optctx, int argc, char **argv, const OptionDef *options,
int (* parse_arg_function)(void *optctx, const char*));
/**
* Parse one given option.