libgit2

git_config_parse_bool

Version:

Parse a string value as a bool.

Valid values for true are: 'true', 'yes', 'on', 1 or any number different from 0 Valid values for false are: 'false', 'no', 'off', 0

Signature

int git_config_parse_bool(int *out, const char *value);

Parameters

int *
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