#include "hdf.h"

main( ) 
{

	int32	 file_id, status;

	/* Open the HDF file. */
	file_id = Hopen("VD_Ex3.hdf", DFACC_RDWR, 0);
    printf ("Hopen returns: %i\n",status);

	/* Initialize HDF for subsequent the vgroup/vdata access. */
	status = Vstart(file_id);
    printf ("Vstart returns: %i\n",status);

    status = VSdelete (file_id, 2);
    printf ("VSdelete returns: %i\n", status);
    HEprint(stdout, 0);

	/* Terminate access to the Vset interface and close the file. */
	status = Vend(file_id);
    printf ("Vend returns: %i\n", status);
	status = Hclose(file_id);
    printf ("Hclose returns: %i\n", status);

}
