3 ms·
I think restype should be set to None in addition to setting argtypes. That way you can avoid the weird number being printed out: >>> add_one(ctypes.byref(
by Thorrez 7y ago
I think restype should be set to None in addition to setting argtypes. That way you can avoid the weird number being printed out:
>>> add_one(ctypes.byref(x))
998793640