libgit2

git_config_parse_int64

Version:

Parse a string value as an int64.

An optional value suffix of 'k', 'm', or 'g' will cause the value to be multiplied by 1024, 1048576, or 1073741824 prior to output.

Signature

int git_config_parse_int64(int64_t *out, const char *value);

Parameters

int64_t *
In
out

place to store the result of the parsing

const char *
In
value

value to parse

Returns

int

Versions