next up previous contents
Next: writeSimpleDataAttribute_fmt Up: Write functions Previous: writeScalarDataAttribute_fmt

writeSimpleDataAttribute

herr_t writeSimpleDataAttribute (hid_t loc_id, hid_t type_id, const char* name, int ndims, hsize_t* dims, void* buf) Writes a simple data attribute value to an HDF5 file.

Arguments:

loc_id: The group or dataset the attribute should be written to.

type_id: The datatype of the attribute.

name: The name that should be used for the attribute.

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.

buf: The data that should be written.

Returns 0 upon success, otherwise -1.




2000-08-08