Share via


_RTC_SetErrorFunc

Designates a function as the handler for reporting run-time error checks (RTCs). This function is deprecated; use _RTC_SetErrorFuncW instead.

_RTC_error_fn _RTC_SetErrorFunc(
   _RTC_error_fn function 
);

Parameters

  • function
    The address of the function that will handle run-time error checks.

Return Value

The previously defined error function. If there is no previously defined function, returns NULL.

Remarks

Do not use this function; instead, use _RTC_SetErrorFuncW. It is retained only for backward compatibility.

Requirements

Routine

Required header

_RTC_SetErrorFunc

<rtcapi.h>

For more information, see Compatibility.

Libraries

All versions of the C run-time libraries.

.NET Framework Equivalent

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

See Also

Tasks

RTC Sample: Run-Time Error Checks

Reference

_CrtDbgReport, _CrtDbgReportW

Run-Time Error Checking