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

Encode an ASN&period;1 item to DER and write the encoding to a FILE stream&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *it*
| ASN&period;1 item descriptor for the type of `x&period;`
| *out*
| Output stream that receives the DER encoding&period;
| *x*
| Value to encode (type implied by `it)&period;`
|===


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