[#BIO_ADDR_service_string]
= BIO&lowbar;ADDR&lowbar;service&lowbar;string
:mrdocs:

Format the service&sol;port portion of a BIO&lowbar;ADDR as an allocated string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char*
BIO&lowbar;ADDR&lowbar;service&lowbar;string(
    xref:BIO_ADDR.adoc[BIO&lowbar;ADDR] const* ap,
    int numeric);
----

== Return Value

Newly allocated NUL&hyphen;terminated string&semi; free with OPENSSL&lowbar;free(), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ap*
| Address to format&period;
| *numeric*
| Non&hyphen;zero to prefer a numeric port (NI&lowbar;NUMERICSERV)&semi; 0 may use a service name&period;
|===


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