scpt_getspecific

March 26, 2020 Contributors

Name

scpt_getspecific — Fetch previously associated pointer value

Synopsis

#include "modules/scriptlets/ec_scriptlet.h"

| void * **scpt_getspecific** ( | thr, |   |
|   | key); |   |

scpt_thread * <var class="pdparam">thr</var>;
const char * <var class="pdparam">key</var>;

Description

Fetch the pointer value set with scpt_setspecific.

Parameters

thr

The script thread. For a description of this data type see “scpt_thread”.

key

The key associated with the script.

Return Value

This function returns the previously set pointer value.

Threading

It is legal to call this function in any thread.

See Also

Chapter 42, Scriptlet (and Alerting) Functions