:&#39; + service  =&gt; *host = NULL, *service = &quot;service&quot;

in case no &#39;:&#39; is present in the string, the result depends on
hostserv_prio, as follows:

when hostserv_prio == BIO_PARSE_PRIO_HOST
host                 =&gt; *host = &quot;host&quot;, *service untouched

when hostserv_prio == BIO_PARSE_PRIO_SERV
service              =&gt; *host untouched, *service = &quot;service&quot;</code></pre>

<h1 id="RETURN-VALUES">RETURN VALUES</h1>

<p>BIO_parse_hostserv() returns 1 on success or 0 on e