fprintf(stderr, "   This program tests the Error API compatible with HDF5 v1.6.  There're supposed to be some error messages\n");
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
 * Programmer:  Raymond Lu
 *              October 14, 2001
 *
 * Purpose: Tests Error API
 */
#include "h5test.h"
#ifdef H5_NO_DEPRECATED_SYMBOLS
int main(void)
    printf("Test skipped because backward compatability with v1.6 is NOT configured in\n");
    return 0;
#else /* H5_NO_DEPRECATED_SYMBOLS */
const char *FILENAME[] = {
    "errors_compat",
    NULL
};
#define DIM0    100
#define DIM1    200
int ipoints2[DIM0][DIM1], icheck2[DIM0][DIM1];
#define DSET_NAME               "a_dataset"
#define FAKE_ID                 (hid_t)-1
herr_t custom_print_cb1(int n, H5E_error1_t *err_desc, void* client_data);
herr_t custom_print_cb2(int n, H5E_error2_t *err_desc, void* client_data);
/*-------------------------------------------------------------------------
 * Function:    user_print1
 *
 * Purpose: This function is a user-defined old-style printing function.
 *              This is just a convenience function for H5Ewalk1() with a