The sixteenth batch
[git/gitster.git] / parse.h
blobea32de9a91fbfbc3cbe4894937852e398e24dde6
1 #ifndef PARSE_H
2 #define PARSE_H
4 int git_parse_signed(const char *value, intmax_t *ret, intmax_t max);
5 int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max);
6 int git_parse_ssize_t(const char *, ssize_t *);
7 int git_parse_ulong(const char *, unsigned long *);
8 int git_parse_int(const char *value, int *ret);
9 int git_parse_int64(const char *value, int64_t *ret);
10 int git_parse_double(const char *value, double *ret);
12 /**
13 * Same as `git_config_bool`, except that it returns -1 on error rather
14 * than dying.
16 int git_parse_maybe_bool(const char *);
17 int git_parse_maybe_bool_text(const char *value);
19 int git_env_bool(const char *, int);
20 unsigned long git_env_ulong(const char *, unsigned long);
22 #endif /* PARSE_H */