Get the value of an integer config variable.
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