[#OPENSSL_sk_new] = OPENSSL_sk_new :mrdocs: Allocate an empty stack with an optional comparison function. == Synopsis Declared in `<openssl/stack.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:OPENSSL_STACK.adoc[OPENSSL_STACK]* OPENSSL_sk_new(xref:OPENSSL_sk_compfunc.adoc[OPENSSL_sk_compfunc] cmp); ---- == Return Value New stack, or NULL on failure; free with OPENSSL_sk_free(). == Parameters [cols="1,4"] |=== | Name| Description | *cmp* | Comparison callback for OPENSSL_sk_find()/sort, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#