[#BIO_snprintf]
= BIO&lowbar;snprintf
:mrdocs:

Bounded snprintf&hyphen;style formatting into `buf` (NUL&hyphen;terminated when `n` &gt; 0)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;snprintf(
    char* buf,
    size&lowbar;t n,
    char const* format, &period;&period;&period;);
----

== Return Value

Number of characters that would have been written (excluding NUL), or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buf*
| Destination buffer&period;
| *n*
| Capacity of `buf` in bytes&period;
| *format*
| printf&hyphen;style format string&period;
|===


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