MATLAB: How to pass NULL to a function that I call in a generic DLL

MATLAB

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

Best 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')
Related Question