diff options
author | Joel Kronqvist <joelkronqvist@proton.me> | 2024-03-24 10:00:19 +0200 |
---|---|---|
committer | Joel Kronqvist <joelkronqvist@proton.me> | 2024-03-24 10:00:19 +0200 |
commit | 1ef526c695df4b37aa184867fb5b62c93118aa02 (patch) | |
tree | e223eda40193d584f55c9f11e8d511988d7e1136 /config-parser.h | |
parent | e26279107edf7012e6b9cd558aaa09a8f0ca4764 (diff) | |
download | stdu-1ef526c695df4b37aa184867fb5b62c93118aa02.tar.gz stdu-1ef526c695df4b37aa184867fb5b62c93118aa02.zip |
Refactored configuration parsing to a separate file and added unit tests to it
Diffstat (limited to 'config-parser.h')
-rw-r--r-- | config-parser.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config-parser.h b/config-parser.h new file mode 100644 index 0000000..1026a98 --- /dev/null +++ b/config-parser.h @@ -0,0 +1,12 @@ + +struct Config { + int precision; + bool human_readable; +}; +typedef struct Config Config; +struct Result { + bool success; + void* result; +}; +typedef struct Result Result; +Result/*Config*/ parse_config(int argc, char* argv[]); |