Main Content

ssGetInputStringLength

Get length of string from input port

Syntax

size_t ssGetInputStringLength(SimStruct *S,int portIdx)

Arguments

S

SimStruct representing an S-Function block.

portIdx

Port from which to get input string length.

Returns

A value of type size_T indicating the length of the input string.

Description

ssGetInputStringLength gets the length (size_t) of the input string.

Languages

C, C++

Example

This example gets the length of the input string.

...
   size_t u0len = ssGetInputStringLength(S, 0);
...
Introduced in R2020b