def int_output(func, argtypes):
 func.argtypes = argtypes
 func.restype = c_int
 return func

def int_output ( func , argtypes ) : func . argtypes = argtypes func . restype = c_int return func
generates a ctypes function that returns an integer value .