| Contents | Index |
void *ssGetDataTypeZero(SimStruct *S, DTypeId id)
A pointer (void *) 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, returns NULL and reports an error.
Use to obtain the zero representation of a data type.
Note Because this macro reports any error that occurs, you do not need to use ssSetErrorStatus to report the error. |
The Simulink Coder product does not support S-functions that contain custom data types. Attempting to generate code for a model that contains this macro results in an error.
C, C++
The following example gets the zero representation of a custom data type.
const void *myZero = ssGetDataTypeZero(S, id); if(myZero == NULL) return;
ssRegisterDataType, ssSetDataTypeSize, ssSetDataTypeZero

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |