Multithreaded Programming Guide

thr_setspecific Syntax

#include <thread.h>

int thr_setspecific(thread_key_t key, void *value);