next up previous contents
Next: addAttributeToCompoundType_fmt Up: Write functions Previous: createCompoundType

addAttributeToCompoundType

herr_t addAttributeToCompoundType (hid_t loc_id, const char* name, size_t offset,hid_t type_id)

Adds an scalar attribute to a compound type.

Arguments:

loc_id: The type the attribute should be appended to,

name: The name of the attribute.

offset: At what offset in the data does this attribute begin.

type_id: The datatype of the attribute.

Returns a negative value upon failure, otherwise the operation was successful.




2000-08-08