[#ASN1_STRING_copy]
= ASN1&lowbar;STRING&lowbar;copy
:mrdocs:

Copy type, data, and flags from `str` into `dst&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;STRING&lowbar;copy(
    xref:ASN1_STRING.adoc[ASN1&lowbar;STRING]* dst,
    xref:ASN1_STRING.adoc[ASN1&lowbar;STRING] const* str);
----

== Description

Preserves any ASN1&lowbar;STRING&lowbar;FLAG&lowbar;EMBED bit already set on `dst&period;`

== Return Value

1 on success, or 0 on failure (including when `str` is NULL)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dst*
| Destination string&semi; must already be allocated&period;
| *str*
| Source ASN1&lowbar;STRING whose contents are copied into `dst&period;`
|===


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