How can I pass NULL to a function that I call in a generic DLL?

My DLL has a function that takes in a pointer, and I want to pass NULL to it.

 Accepted Answer

There are four ways to send NULL to your function
1. Send a 0.
2. Send p after creating p in one of the following ways:
2a. p=libpointer()
2b. p=libpointer('string')
2c. p=libpointer('stringPtr')

More Answers (0)

Categories

Products

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!