Writing S-Functions    
ssSetDataTypeZero

Set zero representation of a data type.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

id
   ID of data type.

zero
   Zero representation of the data type specified by id.

Description

Sets the zero representation of the data type specified by id to 0 and returns 1 (true) if id is valid, the size of the data type has been set, and the zero representation has not already been set. Otherwise, this macro returns 0 (false) 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 registers and sets the size and zero representation of a custom data type named myDataType.

See Also
ssRegisterDataType, ssSetDataTypeSize, ssGetDataTypeZero


  ssSetDataTypeSize ssSetDWorkComplexSignal