[#OPENSSL_LH_insert]
= OPENSSL&lowbar;LH&lowbar;insert
:mrdocs:

Insert `data` into an LHASH, replacing any equal existing element&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
OPENSSL&lowbar;LH&lowbar;insert(
    xref:OPENSSL_LHASH.adoc[OPENSSL&lowbar;LHASH]* lh,
    void* data);
----

== Return Value

Previously stored equal element, or NULL if none &sol; on error (check ERR)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lh*
| Hash table&period;
| *data*
| Element to insert (ownership typically remains with the table)&period;
|===


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