Skip to content
Advertisement

Python interfacing with C library – How to have a null c pointer

I have the following old c code.

JavaScript

Now, I need to use Python to call old c function. I have the following code.

JavaScript

May I know what is the Python equivalent for c[2] = 0;?

Advertisement

Answer

None and 0 both work:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement