how to generate null pointer check in simulink model

2 次查看(过去 30 天)
i'm converting C code into Matlab simulink model. How can I implement NULL pointer check in simulink model and generate codes that does NULL pointer test?
How to generate this if(var1 != NULL_PTR) in simulink model and generate code similarly from model.
void sample(uint8 *var1)
{
if(var1 != NULL_PTR)
{
/* Do Something */
}
}

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 AUTOSAR Blockset 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by