Rate This Document
Findability
Accuracy
Completeness
Readability

Determining Whether an Attribute Exists

Function Syntax

Determine whether an attribute with a given name exists on an object.

htri_t H5Aexists_by_name(hid_t locId, const char * objName, const char * attrName, hid_t lapl)

Parameters

Parameter

Description

Value Range

Input/Output

locId

Location identifier, which may be that of a file, group, dataset, or named data type

Integer

Input

*objName

Object name

Non-empty

Input

*attrName

Attribute name

Non-empty

Input

lapl

Link access property list identifier

Integer

Input

Return Value

Returns a positive value if true, zero if false, or a negative value on failure.