[#OSSL_ENCODER_to_fp]
= OSSL&lowbar;ENCODER&lowbar;to&lowbar;fp
:mrdocs:

Run encoding for a context and write the result to a FILE stream&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;ENCODER&lowbar;to&lowbar;fp(
    xref:OSSL_ENCODER_CTX.adoc[OSSL&lowbar;ENCODER&lowbar;CTX]* ctx,
    FILE* fp);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Configured encoder context&period;
| *fp*
| Destination FILE (text or binary mode as appropriate for the output type)&period;
|===


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