[#ASYNC_stack_alloc_fn]
= ASYNC&lowbar;stack&lowbar;alloc&lowbar;fn
:mrdocs:

Allocate a stack for an asynchronous job (POSIX custom stack allocator)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef void*(* ASYNC&lowbar;stack&lowbar;alloc&lowbar;fn)(size&lowbar;t*);
----

== Return Value

Pointer to the allocated stack base, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *num*
| On entry, requested stack size in bytes&semi; on return, actual size of the allocated stack&period;
|===


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