gethostbyname_r

Name

gethostbyname_r -- find network host database entry matching host name

Synopsis

extern int gethostbyname_r(__const char *__restrict __name,
                           struct hostent *__restrict __result_buf,
                           char *__restrict __buf, size_t __buflen,
                           struct hostent **__restrict __result,
                           int *__restrict __h_errnop);

Description

The gethostbyname_r() function is a reentrant version of the gethostbyname function that searches the network host database for a host name match.