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.
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.
void **
is simply a pointer to a pointer to memory with an unspecified type.Note:
void *
is a generic pointer type, butvoid **
is not a generic pointer-to-pointer type - as it should always point to a truevoid * object
.Also you can only dereference it once !