[#CRYPTO_malloc_fn]
= CRYPTO&lowbar;malloc&lowbar;fn
:mrdocs:

Allocator callback type used by CRYPTO&lowbar;set&lowbar;mem&lowbar;functions()&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef void*(* CRYPTO&lowbar;malloc&lowbar;fn)(size&lowbar;t, char const*, int);
----

== Return Value

Newly allocated memory, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *num*
| Number of bytes to allocate&period;
| *file*
| Source file recorded with the allocation&period;
| *line*
| Source line recorded with the allocation&period;
|===


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