def void_output(func, argtypes, errcheck=True, cpl=False):
 if argtypes:
  func.argtypes = argtypes
 if errcheck:
  func.restype = c_int
  func.errcheck = partial(check_errcode, cpl=cpl)
 else:
  func.restype = None
 return func

def void_output ( func , argtypes , errcheck = True , cpl = False ) : if argtypes : func . argtypes = argtypes if errcheck : func . restype = c_int func . errcheck = partial ( check_errcode , cpl = cpl ) else : func . restype = None return func
for functions that dont only return an error code that needs to be examined .