next up previous contents
Next: writeSimpleDataAttribute Up: Write functions Previous: writeScalarDataAttribute

writeScalarDataAttribute_fmt

herr_t writeScalarDataAttribute_fmt (hid_t loc_id, const char* fmt, const char* name, void* buf)

Writes a scalar value to an HDF5 file.

Arguments:

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

fmt: A string describing the format of the datatype, e.g. char, short, ...

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

buf: The data that should be written.

Returns 0 upon success, otherwise -1.




2000-08-08