[#ASN1_i2d_fp]
= ASN1&lowbar;i2d&lowbar;fp
:mrdocs:

Encode an ASN&period;1 value to a FILE using a type&hyphen;specific i2d function&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;i2d&lowbar;fp(
    xref:i2d_of_void.adoc[i2d&lowbar;of&lowbar;void]* i2d,
    FILE* out,
    void const* x);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *i2d*
| Encoder such as i2d&lowbar;X509&period;
| *out*
| Output FILE that receives the DER encoding&period;
| *x*
| Object to encode&semi; must match the type expected by `i2d&period;`
|===


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