What is void** in a S-Function .cpp

166 views Asked by At

I am reading some code written in a .cpp file on which is based a MATLAB S-Function.

I just want to know what does it mean :

void** vecPWork

Is it a variable of which type? And the two stars stand for what?

thanks for your time.

1

There are 1 answers

0
P0W On BEST ANSWER

void ** is simply a pointer to a pointer to memory with an unspecified type.

Note: void * is a generic pointer type, but void ** is not a generic pointer-to-pointer type - as it should always point to a true void * object.

Also you can only dereference it once !