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

VSattrinfo/vsfainf

intn VSattrinfo(int32 vdata_id, int32 field_index, int32 attr_index, char *attr_name, int32 *data_type, int32 *count, int32 *size)
vdata_id

IN:

Vdata identifier returned from VSattach

field_index

IN:

Index of the target field

attr_index

IN:

Index of the target attribute

attr_name

OUT:

Name of the target attribute

data_type

OUT:

Data type of the target attribute

count

OUT:

Attribute count

size

OUT:

Size of the target attribute

Purpose

Returns the name, data type, number of values, and the size of the values of the specified attribute of the specified vdata field or vdata.

Return value

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

Description

The values of the attr_name, data_type, count and size parameters can be set to NULL, if the information returned by these parameters are not needed.

The field_index in VSattrinfo is the same as with the field_index parameter in VSsetattr. It can be set to either a integer field index, or _HDF_ENTIRE_VDATA to specify the vdata referred to by vdata_id.

FORTRAN

integer function vsfainf(vdata_id, field_index, attr_index, attr_name, data_type, count, size)

integer vdata_id, field_index, attr_index

character* (*) attr_name

integer data_type, count, size



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

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