| 117 | } |
| 118 | |
| 119 | int git_parse_ulong(const char *value, unsigned long *ret) |
| 120 | { |
| 121 | uintmax_t tmp; |
| 122 | if (!git_parse_unsigned(value, &tmp, maximum_unsigned_value_of_type(long))) |
| 123 | return 0; |
| 124 | *ret = tmp; |
| 125 | return 1; |
| 126 | } |
| 127 | |
| 128 | int git_parse_ssize_t(const char *value, ssize_t *ret) |
| 129 | { |