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

addArrayToCompoundType

herr_t addArrayToCompoundType (hid_t loc_id, const char* name, size_t offset, int ndims,size_t* dims,hid_t type_id)

Adds an array 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.

ndims: The rank of the data to be written, between 0-4.

dims: The dimensions of the data, a pointer to ndims number of hsize_t values.

type_id: The datatype of the attribute.

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




2000-08-08