char * getconfent (
const char *category,
const char *name,
int flags); char * getconfent_r (
const char *category,
const char *name,
int flags,
char *buffer,
int bufsiz);
getconfent() get the name entry from the configuration file. Every entry in the configuration file is categorized. The category parameter is its specifier. The getconfent_r() function is a re-entrant version of getconfent() using the passed buffer parameter instead of an internal static buffer.
If threads are created usint the Cthread_create() interface, it is not mandatory to call getconfent_r() in order to assure thread-safe code. In that case getconfent() calls the re-entrant version internally using a buffer allocated in thread local storage.
If the getconfent(), getconfent_r() function fail, serrno may be set to one of the following values: