how to generate null pointer check in simulink model

2 views (last 30 days)
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 */
}
}

Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!