Creates and writes a dataset.

Procedure:

H5LT_MAKE_DATASET_SHORT(loc_id, dset_name, rank, dims, buffer)

Signature:

<pre><code class="language-c">herr_t H5LTmake_dataset_short ( hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const short *buffer )</code></pre>

Parameters:
hid_t loc_idIN: Identifier of the file or group to create the dataset within.
const char *dset_name   IN: The name of the dataset to create.
int rankIN: Number of dimensions of dataspace.
const hsize_t * dimsIN: An array of the size of each dimension.
const short * bufferIN: Buffer with data to be written to the dataset.

Description:

H5LTmake_dataset_short creates and writes a dataset named dset_name attached to the object specified by the identifier loc_id.

The dataset’s datatype will be short signed integer, H5T_NATIVE_SHORT.

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

Coming Soon!