ssWriteOutputString

Write C string to output port

Syntax

void ssWriteOutputString(SimStruct *S, int portIdx, const char_T* str)

Arguments

S

SimStruct representing an S-Function block.

portIdx

Port to which to write string.

str

String to write to output port.

Description

ssWriteOutputString writes a null-terminated C string to an output port of string data type.

Languages

C, C++

Example

This example writes a string, str, to output port 0.

const char* str = "output string";
ssWriteOutputString(S, 0, str);
Introduced in R2020b