libgit2

git_config_get_int32

Version:

Get the value of an integer config variable.

Signature

int git_config_get_int32(int32_t *out, git_config *cfg, const char *name);

Parameters

int32_t *
In
out

pointer to the variable where the value should be stored

In
cfg

where to look for the variable

const char *
In
name

the variable's name

Returns

int

0 or an error code

Versions