[#OPENSSL_sk_compfunc]
= OPENSSL&lowbar;sk&lowbar;compfunc
:mrdocs:

Comparison callback used to order or search OPENSSL&lowbar;STACK elements&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int(* OPENSSL&lowbar;sk&lowbar;compfunc)(void const*, void const*);
----

== Return Value

Negative, zero, or positive like strcmp() when comparing `a` to `b&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| First element pointer (as stored in the stack)&period;
| *b*
| Second element pointer (as stored in the stack)&period;
|===


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