Main Content

ssGetUserData

Access user data

Syntax

void *ssGetUserData(SimStruct *S)

Arguments

S

SimStruct that represents an S-Function block.

Returns

A pointer (void *) to the S-function's user data.

Description

Use to access the user data associated with this block. See ssSetUserData for more information on specifying user data.

Languages

C, C++

Examples

See the S-function sfun_multiport.c used in sfcndemo_sfun_multiport and the S-function sfun_runtime4.c used in sfcndemo_runtime.

Version History

Introduced before R2006a