libgit2

git_config_lookup_map_value

Version:

Maps a string value to an integer constant

Signature

int git_config_lookup_map_value(int *out, const git_configmap *maps, size_t map_n, const char *value);

Parameters

int *
In
out

place to store the result of the parsing

In
maps

array of git_configmap objects specifying the possible mappings

size_t
In
map_n

number of mapping objects in maps

const char *
In
value

value to parse

Returns

int

Versions