Get length of string from input port
size_t ssGetInputStringLength(SimStruct *S,int portIdx)
S
SimStruct representing an S-Function block.
portIdx
Port from which to get input string length.
A value of type size_T
indicating the length of the input
string.
ssGetInputStringLength
gets the length
(size_t
) of the input string.
C, C++
This example gets the length of the input string.
... size_t u0len = ssGetInputStringLength(S, 0); ...
ssGetStringDataTypeMaxLength
, ssIsStringDataType
, ssReadInputString
, ssRegisterStringDataType
, ssWriteOutputString