0

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.

desmond13
  • 2,913
  • 3
  • 29
  • 46

1 Answers1

1

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 !

P0W
  • 46,614
  • 9
  • 72
  • 119