ssReadInputString

Read C string from input port

Syntax

const char_T* ssReadInputString(SimStruct *S, int portIdx)

Returns

Null-terminated C string read from input port.

Arguments

S

SimStruct representing 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.

Languages

C, C++

Example

This example allocates and returns the null-terminated C string read from the input port.

const char_T *u0str = ssReadInputString(S, 0);
Introduced in R2020b