Get the value of a boolean config variable.
This function uses the usual C convention of 0 being false and anything else true.
pointer to the variable where the value should be stored
where to look for the variable
the variable's name
0 or an error code