[#OPENSSL_sk_new]
= OPENSSL&lowbar;sk&lowbar;new
:mrdocs:

Allocate an empty stack with an optional comparison function&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]*
OPENSSL&lowbar;sk&lowbar;new(xref:OPENSSL_sk_compfunc.adoc[OPENSSL&lowbar;sk&lowbar;compfunc] cmp);
----

== Return Value

New stack, or NULL on failure&semi; free with OPENSSL&lowbar;sk&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cmp*
| Comparison callback for OPENSSL&lowbar;sk&lowbar;find()&sol;sort, or NULL&period;
|===


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