I am creating a MEX file for a connection with C++ on another computer. For that I need a char with the IP, but I can only extract an mxChar from the input of the mexfunction with mxGetChars. So my question is how to convert mxChar to char, is there another way of using mxGetChars?

답변 (1개)

Friedrich
Friedrich 2014년 1월 15일
편집: Friedrich 2014년 1월 15일

0 개 추천

Have you tried using mxGetString instead of mxGetChars?
int mxGetString(const mxArray *pm, char *str, mwSize strlen);

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품

태그

질문:

2014년 1월 15일

편집:

2014년 1월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by