#include <mex.h>

void mexFunction (int nresults, mxArray **arrresults, int nargs,
		const mxArray **arrargs)
{
	const mxArray *tmp = mexGetVariablePtr("global", "ctl_teststr");
	double *tmp2 = mxGetPr(tmp);
	char *test = (char *) ((int)(((long long)tmp2[1]) << 32)) + (int)tmp2[0];
	mexPrintf("Test: %s\n", test);
}
