Rate This Document
Findability
Accuracy
Completeness
Readability

Writing an Attribute

Function Syntax

Write data to an attribute.

herr_t H5Awrite(hid_t attributeId, hid_t datatypeId, const void *buffer )

Parameters

Parameter

Description

Value Range

Input/Output

attributeId

Identifier of the attribute to write

Integer

Input

datatypeId

Identifier of the attribute data type (in memory)

Integer

Input

*buffer

Data to write

Non-empty

Input

Return Value

  • Success: non-negative value
  • Failure: negative value