[#BN_cmp]
= BN&lowbar;cmp
:mrdocs:

Compare two BIGNUMs considering sign&period;

== Synopsis

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

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

== Return Value

&hyphen;1 if a &lt; b, 0 if equal, or 1 if a &gt; b&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| First value (NULL treated as zero)&period;
| *b*
| Second value (NULL treated as zero)&period;
|===


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