Main Content

ssGetDataTypeName

Get the name of a data type

Syntax

const char *ssGetDataTypeName(SimStruct *S, DTypeId id)

Arguments

S

SimStruct representing an S-Function block.

id

ID of a data type.

Returns

The name of the data type specified byid, ifidis valid. Otherwise, returnsNULLand reports an error.

Description

Use to obtain the name of a data type.

Note

Because this macro reports any error that occurs, you do not need to usessSetErrorStatusto report the error.

关于使用自定义数据类型的更多信息in S-functions, seeConfigure Custom Data Types.

Languages

C, C++

Example

The following example gets the name of a custom data type.

const char *dtypeName = ssGetDataTypeName(S, id); if(dtypeName == NULL) return;

Version History

Introduced before R2006a