Turns automatic error printing on or off
Procedure:
H5E_SET_AUTO1(func, client_data)
Signature:
herr_t H5Eset_auto1( H5E_auto1_t func, void *client_data )
SUBROUTINE h5eset_auto_f(printflag, hdferr)
INTEGER, INTENT(IN) :: printflag !flag to turn automatic error
!printing on or off
!possible values are:
!printon (1)
!printoff(0)
INTEGER, INTENT(OUT) :: hdferr ! Error code
END SUBROUTINE h5eset_auto_f
Parameters:
H5E_auto1_t func | IN: Function to be called upon an error condition |
void *client_data | IN: Data passed to the error function |
Description:
H5E_SET_AUTO1 turns on or off automatic printing of errors. When turned on (non-null func
pointer), any API function which returns an error indication will first call func
, passing it client_data
as an argument.
func
, a function compliant with the H5E_auto1_t prototype, is defined in the H5Epublic.h
source code file as:
typedef herr_t (*H5E_auto1_t)(void *client_data);
When the library is first initialized the auto printing function is set to H5E_PRINT1 (cast appropriately) and client_data
is the standard error stream pointer, stderr
.
Automatic stack traversal is always in the H5E_WALK_DOWNWARD
direction.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
History:
Release | Change |
---|
1.8.0 | Function H5Eset_auto renamed to H5Eset_auto1 and deprecated in this release. |
--- Last Modified: January 08, 2020 | 02:16 PM