Latest available version: IDA and decompilers v8.2.230124sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
err.h File Reference

Thread safe functions that deal with error codes. More...

Functions

idaman THREAD_SAFE void ida_export vqperror (const char *format, va_list va)
 Print error message to stderr (analog of perror)
 
idaman THREAD_SAFE const char *ida_export qstrerror (error_t _qerrno)
 Get error description string. More...
 
idaman THREAD_SAFE char *ida_export get_errdesc (const char *header, error_t _qerrno=-1)
 A convenience function to generate error messages (returns "header: error message")
 
idaman THREAD_SAFE char *ida_export winerr (int code)
 Get error message for MS Windows error codes. More...
 
idaman const char *ida_export qerrstr (int errno_code=-1)
 Get error string. More...
 
THREAD_SAFE void qperror (const char *format,...)
 See vqperror()
 
THREAD_SAFE void set_errno (int code)
 See set_qerrno()
 

Detailed Description

Thread safe functions that deal with error codes.

Function Documentation

◆ qstrerror()

idaman THREAD_SAFE const char *ida_export qstrerror ( error_t  _qerrno)

Get error description string.

if _qerrno=-1, get_qerrno() will be used

◆ winerr()

idaman THREAD_SAFE char *ida_export winerr ( int  code)

Get error message for MS Windows error codes.

Parameters
codeerrno or GetLastError() depending on the system.

◆ qerrstr()

idaman const char *ida_export qerrstr ( int  errno_code = -1)

Get error string.

if errno_code == -1, then errno will be used.