diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-11-19 00:46:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-11-19 00:46:47 +0100 |
commit | 852618039bea9f6fa851a0ae3101f79b65d3cf6b (patch) | |
tree | 59d51b9de6193942f06de1b122f0b35777b554e7 /util.h | |
parent | e1cc7a01bb4663b4aea307cf22368bb5568a9e46 (diff) |
util: add parsers for boolean and integers
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -46,4 +46,9 @@ bool startswith(const char *s, const char *prefix); int nointr_close(int fd); +int parse_boolean(const char *v); + +int safe_atou(const char *s, unsigned *ret_u); +int safe_atoi(const char *s, int *ret_i); + #endif |