From: plim on
Hi,

I create a C DLL ( using matlab compiler) in order to use it in c++.
One of the DLL input arguments is a char array.
I don't know how to allocate memory of a char array in my c++ script :
(... To a double i know...

piece of my code:
//*****************************************************
NUMC = mxCreateDoubleMatrix(1,20,mxREAL);
STRC = mxCreateCharArray(???);


memcpy(mxGetPr(NUMC),d, 20*sizeof(double));
memcpy(mxGetPr(STRC ),str, 50*sizeof(char));