C中的多参数pthread_create()函数?

C中的多参数pthread_create()函数?,c,multithreading,pthreads,C,Multithreading,Pthreads,我有一个任务,其中我必须向C中的线程调用函数传递多个参数。 要明确的是,pthread\u create(&threadName,NULL,search\u thread,parameter1)是我的线程创建,我想为search\u thread函数传递更多参数。可能吗? 基本上我想要pthread\u create(&threadName,NULL,search\u thread,parameter1,parameter2,…)pthread\u create()的最后一个参数是void*。您

我有一个任务,其中我必须向C中的线程调用函数传递多个参数。 要明确的是,
pthread\u create(&threadName,NULL,search\u thread,parameter1)
是我的线程创建,我想为search\u thread函数传递更多参数。可能吗?
基本上我想要
pthread\u create(&threadName,NULL,search\u thread,parameter1,parameter2,…)
pthread\u create()的最后一个参数是
void*
。您可以定义一个结构来封装多个参数,将其地址强制转换为
void*
,然后将其重新转换为
search\u thread()

非常清楚,先生。谢谢你@timrau