das2C
das core C utilities (v3)
Loading...
Searching...
No Matches
Public Member Functions
das_error_msg Struct Reference

Structure returned from das_get_error(). More...

#include <das3/util.h>

Public Member Functions

DAS_API das_error_msg * das_get_error (void)
 Return the saved das2 error message buffer.
 
DAS_API void das_error_free (das_error_msg *pMsg)
 Free an error message structure allocated on the heap.
 

Detailed Description

Structure returned from das_get_error().

To get error messages das2C must be set to an error disposition of DAS2_ERRDIS_RET

Member Function Documentation

◆ das_get_error()

DAS_API das_error_msg * das_get_error ( void  )

Return the saved das2 error message buffer.

Returns
an instance of Das2ErrorMessage. The struct returned contains the error code, formatted message, max message size, and the source file, function name, and line number of where the message originated.

◆ das_error_free()

DAS_API void das_error_free ( das_error_msg *  pMsg)

Free an error message structure allocated on the heap.

Parameters
pMsgthe message buffer to free

The documentation for this struct was generated from the following file: