if(H5Sselect_hyperslab(fsid, H5S_SELECT_SET, start, NULL, PLANES[file_number], NULL) < 0)
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "h5test.h"
#include "vds_swmr.h"
int
main(int argc, char *argv[])
    int file_number     = -1;   /* Source file number               */
    hid_t fid           = -1;   /* HDF5 file ID                     */
    hid_t faplid        = -1;   /* file access property list ID                */
    hid_t did           = -1;   /* dataset ID                       */
    hid_t msid          = -1;   /* memory dataspace ID              */
    hid_t fsid          = -1;   /* file dataspace ID                */
    hsize_t extent[RANK];       /* dataset extents                  */
    hsize_t start[RANK];        /* hyperslab start point            */
    int *buffer         = NULL; /* data buffer                      */
    int value           = -1;   /* value written to datasets        */
    hsize_t n_elements  = 0;    /* number of elements in a plane    */
    hsize_t i;                  /* iterator                         */
    hsize_t j;                  /* iterator                         */
    /******************************
     * Fill a source dataset file *
     ******************************/
    /* The file number is passed on the command line.
     * This is an integer index into the FILE_NAMES array. 
     */
    if(argc != 2) {
        HDfprintf(stderr, "ERROR: Must pass the source file number on the command line.\n");
        return EXIT_FAILURE;
    }