Git fork
1#ifndef PARSE_H
2#define PARSE_H
3
4int git_parse_signed(const char *value, intmax_t *ret, intmax_t max);
5int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max);
6int git_parse_ssize_t(const char *, ssize_t *);
7int git_parse_ulong(const char *, unsigned long *);
8int git_parse_int(const char *value, int *ret);
9int git_parse_int64(const char *value, int64_t *ret);
10int git_parse_double(const char *value, double *ret);
11
12/**
13 * Same as `git_config_bool`, except that it returns -1 on error rather
14 * than dying.
15 */
16int git_parse_maybe_bool(const char *);
17int git_parse_maybe_bool_text(const char *value);
18
19int git_env_bool(const char *, int);
20unsigned long git_env_ulong(const char *, unsigned long);
21
22#endif /* PARSE_H */