ok I have a variable
void * vp
passed through a function
proccessData (void * vp)
I have a function that accept the following as a parameter
findIDType(const char* const pointer)
and wanted to pass the pv as findIDType(pv)
compiled with GNU 2.95.3
cannot use any other compiler btw.
the issue is that the compiler doesnt give me why it is not acceptable,
it just print out a message cannot
without any useful description.
how to cast that? from void*
to const char* const
I have tried (char*)pv
, (const char*)pv
and (const char* const)pv
without any luck