Read C string from input port
const char_T* ssReadInputString(SimStruct *S, int portIdx)
Null-terminated C string read from input port.
S
SimStruct representing an S-Function block.
portIdx
Input port from which to read string.
ssReadInputStringUse
returns the null-terminated C string
read from the input port.
C, C++
This example allocates and returns the null-terminated C string read from the input port.
const char_T *u0str = ssReadInputString(S, 0);
ssGetInputStringLength
, ssGetStringDataTypeMaxLength
, ssIsStringDataType
, ssRegisterStringDataType
, ssWriteOutputString