Get the value of a string config variable.
The value of the config will be copied into the buffer.
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.
the variable's name
0 or an error code