opts-parser.h 344 B

12345678910111213141516171819
  1. #pragma once
  2. #include <stddef.h>
  3. struct obs_option {
  4. char *name;
  5. char *value;
  6. };
  7. struct obs_options {
  8. size_t count;
  9. struct obs_option *options;
  10. size_t ignored_word_count;
  11. char **ignored_words;
  12. char **input_words;
  13. };
  14. struct obs_options obs_parse_options(const char *options_string);
  15. void obs_free_options(struct obs_options options);