diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-27 12:52:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-27 12:52:31 -0400 |
commit | b9b05e437d09c4d06b554d0484c7ae1a3aa1d647 (patch) | |
tree | ea45c980cb972a74be77ae7813dc249ff31ab4e8 /src/lib/string/parse_int.h | |
parent | 300e3bebd19b2686501d5400da1ca4a748027ba4 (diff) | |
parent | d893be190fc244330543c9e98613a3f0daebc6ed (diff) | |
download | tor-b9b05e437d09c4d06b554d0484c7ae1a3aa1d647.tar.gz tor-b9b05e437d09c4d06b554d0484c7ae1a3aa1d647.zip |
Merge branch 'net_refactor'
Diffstat (limited to 'src/lib/string/parse_int.h')
-rw-r--r-- | src/lib/string/parse_int.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/string/parse_int.h b/src/lib/string/parse_int.h new file mode 100644 index 0000000000..6f56fc32a8 --- /dev/null +++ b/src/lib/string/parse_int.h @@ -0,0 +1,20 @@ +/* Copyright (c) 2003, Roger Dingledine + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2018, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#ifndef TOR_PARSE_INT_H +#define TOR_PARSE_INT_H + +#include "lib/cc/torint.h" + +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); +double tor_parse_double(const char *s, double min, double max, int *ok, + char **next); +uint64_t tor_parse_uint64(const char *s, int base, uint64_t min, + uint64_t max, int *ok, char **next); + +#endif |