Write C string to output port
void ssWriteOutputString(SimStruct *S, int portIdx, const char_T* str)
S
SimStruct representing an S-Function block.
portIdx
Port to which to write string.
str
String to write to output port.
ssWriteOutputString
writes a null-terminated C string to an
output port of string data type.
C, C++
This example writes a string, str, to output port 0.
const char* str = "output string"; ssWriteOutputString(S, 0, str);
ssGetInputStringLength
, ssGetStringDataTypeMaxLength
, ssIsStringDataType
, ssReadInputString
, ssRegisterStringDataType