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

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