Frequently Asked Question

C-CODE: How can I test functions with pointer arguments in cases of NULL arguments?
Last Updated 11 days ago

TPT offers the options to connect the function argument in C as value or as address. If it is connected as value the NULL cannot be used as argument. To work around this issue, some wrapper code needs to be added. The C/C++ Platform offers the section ‘Custom Wrapper Code’. The way to call the function with NULL is to write a special function calling it with NULL there.

An example on how to do this is attached.

Please Wait!

Please wait... it will take a second!