import ctypes

calc = ctypes.CDLL('./calc.so')
calc.add.argtypes = [ctypes.c_int32, ctypes.c_int32]
calc.add.restype = ctypes.c_int32

calc.sub.argtypes = [ctypes.c_int32, ctypes.c_int32]
calc.sub.restype = ctypes.c_int32

print(calc.add(5, 3))
print(calc.sub(5, 3))
