[#OPENSSL_LH_new]
= OPENSSL&lowbar;LH&lowbar;new
:mrdocs:

Allocate a new LHASH table using hash function `h` and compare function `c&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OPENSSL_LHASH.adoc[OPENSSL&lowbar;LHASH]*
OPENSSL&lowbar;LH&lowbar;new(
    xref:OPENSSL_LH_HASHFUNC.adoc[OPENSSL&lowbar;LH&lowbar;HASHFUNC] h,
    xref:OPENSSL_LH_COMPFUNC.adoc[OPENSSL&lowbar;LH&lowbar;COMPFUNC] c);
----

== Return Value

Newly allocated OPENSSL&lowbar;LHASH, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *h*
| Hash callback for elements stored in the table&period;
| *c*
| Comparison callback returning 0 for equal elements&period;
|===


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