MATLAB: How to pass char** parameter to C function using calllib

pass arguments to shared library functions

Hello,
I would like to know how to pass a char** argument to a C function ('test1DChar'). The signature of test1DChar is the following:
void test1DChar (char **data, int *size);
Here is my test code for calling the C function:
sizePtr = libpointer('int32Ptr', 0);
data = ????
calllib ('libfun','test1DChar', data, sizePtr);
Thank you for your help.
Regards,
LF

Best Answer

I've finally found a solution:
data = libpointer('stringPtrPtr', cell(1, 1));
Hope it can help. LF