diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-08-28 23:10:16 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-08-28 23:10:16 +1200 |
commit | 4297c45174964231ccd4177362864545adfdda1c (patch) | |
tree | 79acc052b88ccde67eca6eaeaef1d2b6d3f354b5 /common.h | |
parent | 7e647a8b34ede473ea6093b53702211ec4ed6d0a (diff) | |
download | paramano-4297c45174964231ccd4177362864545adfdda1c.tar.xz |
Created wrapper to get integer from formatted filename
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -19,6 +19,10 @@ #ifndef COMMON_H #define COMMON_H +#include <stdarg.h> + +int get_int_value_from_filef(const char* format, ...); +int vget_int_value_from_filef(const char* format, va_list args); int get_int_value_from_file(const char* filename); int get_int(const char* string); bool file_has_line(const char *filename, const char *line); |