summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-11-19 00:46:47 +0100
committerLennart Poettering <lennart@poettering.net>2009-11-19 00:46:47 +0100
commit852618039bea9f6fa851a0ae3101f79b65d3cf6b (patch)
tree59d51b9de6193942f06de1b122f0b35777b554e7 /util.h
parente1cc7a01bb4663b4aea307cf22368bb5568a9e46 (diff)
util: add parsers for boolean and integers
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index 5d9ef39e04..2df67b73df 100644
--- a/util.h
+++ b/util.h
@@ -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