func udtErrDesc(appMsg string) (err error) { return fmt.Errorf("%s - UDT Error-%s:%d ", appMsg, C.GoString(C.udt_getlasterror_desc()), int(C.udt_getlasterror_code())) }
// lastError returns the last error as a Go string. func lastError() error { return errors.New(C.GoString(C.udt_getlasterror_desc())) }