[#ASN1_STRING_cmp]
= ASN1&lowbar;STRING&lowbar;cmp
:mrdocs:

Compare two ASN1&lowbar;STRING values by type and content octets&period;

== Synopsis

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

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

== Return Value

Negative, zero, or positive like memcmp(), considering type then data&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| First string&period;
| *b*
| Second string&period;
|===


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