summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index d3a3d62413..2b54012fa9 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -94,6 +94,10 @@ typedef enum {
int tor_strpartition(char *dest, size_t dest_len,
const char *s, const char *insert, size_t n,
part_finish_rule_t rule);
+long tor_parse_long(const char *s, int base, long min,
+ long max, int *ok, char **next);
+unsigned long tor_parse_ulong(const char *s, int base, unsigned long min,
+ unsigned long max, int *ok, char **next);
/* Some platforms segfault when you try to access a multi-byte type