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

SDfindattr/sffattr

int32 SDfindattr(int32 [file, sds, dim]_id, char *attr_name)
[file, sds, dim]_id

IN:

Identifier of the object the attribute is to be attached to: an file_id for a file, an sds_id for an SDS or a dim_id for a dimension

attr_name

IN:

Name assigned to the attribute

Purpose

Finds the index for an attribute with a given name.

Return value

Returns the attr_index if successful and FAIL (or -1) otherwise.

Description

The attr_index returned by this function can be passed to SDattrinfo and SDreadattr. This routine is case sensitive. Wild cards are not allowed in the attr_name parameter.

FORTRAN

integer function sffattr([file, sds, dim]_id, attr_name)

integer [file, sds, dim]_id

character* (*) attr_name



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

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