Writing S-Functions    
ssGetDataTypeZero

Get the zero representation of a data type.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

id
   ID of data type.

Description

Returns a pointer to the zero representation of the data type specified by id, if id is valid and the data type's size has been set. Otherwise, this macro returns NULL and reports an error. Because this macro reports any error that occurs, you do not need to use ssSetErrorStatus to report the error.

Languages

C

Example

The following example gets the zero representation of a custom data type.

See Also
ssRegisterDataType, ssSetDataTypeSize, ssSetDataTypeZero


  ssGetDataTypeSize ssGetDiscStates