Tor  0.4.3.0-alpha-dev
parse_int.h
Go to the documentation of this file.
1 /* Copyright (c) 2003, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
6 /**
7  * \file parse_int.h
8  * \brief Header for parse_int.c
9  **/
10 
11 #ifndef TOR_PARSE_INT_H
12 #define TOR_PARSE_INT_H
13 
14 #include "lib/cc/torint.h"
15 
16 long tor_parse_long(const char *s, int base, long min,
17  long max, int *ok, char **next);
18 unsigned long tor_parse_ulong(const char *s, int base, unsigned long min,
19  unsigned long max, int *ok, char **next);
20 double tor_parse_double(const char *s, double min, double max, int *ok,
21  char **next);
22 uint64_t tor_parse_uint64(const char *s, int base, uint64_t min,
23  uint64_t max, int *ok, char **next);
24 
25 #endif /* !defined(TOR_PARSE_INT_H) */
long tor_parse_long(const char *s, int base, long min, long max, int *ok, char **next)
Definition: parse_int.c:59
Integer definitions used throughout Tor.
unsigned long tor_parse_ulong(const char *s, int base, unsigned long min, unsigned long max, int *ok, char **next)
Definition: parse_int.c:78
double tor_parse_double(const char *s, double min, double max, int *ok, char **next)
Definition: parse_int.c:97
uint64_t tor_parse_uint64(const char *s, int base, uint64_t min, uint64_t max, int *ok, char **next)
Definition: parse_int.c:110