parse_int.h 776 B

1234567891011121314151617181920
  1. /* Copyright (c) 2003, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #ifndef TOR_PARSE_INT_H
  6. #define TOR_PARSE_INT_H
  7. #include "lib/cc/torint.h"
  8. long tor_parse_long(const char *s, int base, long min,
  9. long max, int *ok, char **next);
  10. unsigned long tor_parse_ulong(const char *s, int base, unsigned long min,
  11. unsigned long max, int *ok, char **next);
  12. double tor_parse_double(const char *s, double min, double max, int *ok,
  13. char **next);
  14. uint64_t tor_parse_uint64(const char *s, int base, uint64_t min,
  15. uint64_t max, int *ok, char **next);
  16. #endif