[#BIO_gethostbyname]
= BIO&lowbar;gethostbyname
:mrdocs:

Resolve `name` with gethostbyname(3) (deprecated&semi; prefer BIO&lowbar;lookup&lowbar;ex())&period;

== Synopsis

Declared in `&lt;openssl&sol;bio&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
hostent*
BIO&lowbar;gethostbyname(char const* name);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

Pointer to a static hostent on success, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| Host name to look up&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
