libgit2

git_config_parse_int32

Version:

Parse a string value as an int32.

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_int32(int32_t *out, const char *value);

Parameters

int32_t *
In
out

place to store the result of the parsing

const char *
In
value

value to parse

Returns

int

0 or an error code.

Versions