Get the value of a string config variable.
The string is owned by the variable and should not be freed by the user.
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's value
the variable's name
0 or an error code