[#BIO_write_ex]
= BIO&lowbar;write&lowbar;ex
:mrdocs:

Write up to `dlen` bytes from `data` to a BIO&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;write&lowbar;ex(
    xref:BIO.adoc[BIO]* b,
    void const* data,
    size&lowbar;t dlen,
    size&lowbar;t* written);
----

== Return Value

1 if any data was written, or 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *b*
| Destination BIO&period;
| *data*
| Bytes to write&period;
| *dlen*
| Number of bytes to write&period;
| *written*
| On success, receives the number of bytes actually written&period;
|===


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