[Top] [Prev] [Next] [Bottom]

ANendaccess/afendaccess

intn ANendaccess(int32 ann_id)
ann_id

IN:

Annotation identifier returned by ANcreate, ANcreatef or ANselect

Purpose

Terminates access to an annotation.

Return value

Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.

Description

There should be one call to ANendaccess for every call to ANselect, ANcreate or ANcreatef.

Example

This example illustrates the use of ANendaccess:

	#include "hdf.h"

	int32 an_id, ann_id, file_id, stat;
	uint16 tag = DFTAG_DIL;
	uint16 ref = 0;
	ann_type type = AN_DATA_LABEL;

	file_id = Hopen("myfile", DFACC_WRITE, 0);
	an_id = ANstart(file_id);
	ann_id = ANcreate(an_id, tag, ref, type);
	       ...
	stat = ANendaccess(ann_id);
	stat = ANend(an_id);
	Hclose(file_id); 
FORTRAN

integer function afendaccess(ann_id)

integer ann_id



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.