Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 by id, if id is valid. Otherwise, returns NULL and 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 use ssSetErrorStatus to report the error.

For more information about using custom data types in S-functions, see 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;

Introduced before R2006a

Was this topic helpful?