Main Content

ssCallGenericDestroyFcn

Invoke the generic destruction function for an S-function

Syntax

const char_T * ssCallGenericDestroyFcn(SimStruct *S,void **ports)

Arguments

S

SimStruct representing an S-Function block.

ports

Array of port objects.

Returns

A pointer to a character vector containing an error description on failure, and NULL if successful.

Description

Frees an array of ports obtained using the ssCallSelectedSignalsFcn function.

Languages

C, C++

Example

See the S-function barplot.c.

Introduced in R2019a