[#OPENSSL_sk_set]
= OPENSSL&lowbar;sk&lowbar;set
:mrdocs:

Replace the pointer at index `i` in a stack&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
OPENSSL&lowbar;sk&lowbar;set(
    xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]* st,
    int i,
    void const* data);
----

== Return Value

Previous pointer at `i,` or NULL if `i` is out of range&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Stack to update&period;
| *i*
| Zero&hyphen;based index of the slot to replace&period;
| *data*
| New element pointer stored at `i&period;`
|===


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