[#OPENSSL_sk_pop_free]
= OPENSSL&lowbar;sk&lowbar;pop&lowbar;free
:mrdocs:

Pop and free every element, then free the stack&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
OPENSSL&lowbar;sk&lowbar;pop&lowbar;free(
    xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]* st,
    void(* func)(void*));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Stack to destroy, or NULL&period;
| *func*
| Destructor applied to each element (must accept the element pointer)&period;
|===


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