def check_dbl(result, func, cargs):
 if (result != 1):
  return None
 return last_arg_byref(cargs)

def check_dbl ( result , func , cargs ) : if ( result != 1 ) : return None return last_arg_byref ( cargs )
checks the status code and returns the double value passed in by reference .