Get the value of an integer config variable.
All config files will be looked into, in the order of their defined level. A higher level means a higher priority. The first occurrence of the variable will be returned here.
pointer to the variable where the value should be stored
the variable's name
0 or an error code