ssReadInputString
Read C string from input port
Since R2020b
Syntax
const char_T* ssReadInputString(SimStruct *S, int portIdx)
Returns
Null-terminated C string read from input port.
Arguments
S
SimStruct that represents an S-Function block.
portIdx
Input port from which to read string.
Description
ssReadInputStringUse
returns the null-terminated C string
read from the input port.
Limitations
Non-inlined S-functions that contain string SimStruct functions do not run with rapid accelerator mode.
Languages
C, C++
Examples
This example allocates and returns the null-terminated C string read from the input port.
const char_T *u0str = ssReadInputString(S, 0);
See Also
ssGetInputStringLength
, ssGetStringDataTypeMaxLength
, ssIsStringDataType
, ssRegisterStringDataType
, ssWriteOutputString
Version History
Introduced in R2020b