[Back to Interface] [Prev] [Next]

Hputelement

int32 Hputelement(int32 file_id, uint16 tag, uint16 ref, uint8 *data, int32 length)

file_id IN:

File identifier returned by Hopen

tag IN:

Tag of the data element to add or replace

ref IN:

Reference number of the data element to add or replace

data IN:

Pointer to data buffer

length IN:

Length of data to write

Purpose

Writes a data element or replaces an existing data element in a HDF file.

Return value

Returns the number of bytes written if successful and FAIL (or -1) otherwise.



[Back to Interface] [Prev] [Next]

hdfhelp@ncsa.uiuc.edu
HDF Reference Manual - 07/29/98, NCSA HDF Development Group.