Change the size of a variable length array

ss_array_resize is a function defined in ssarray.c.

Synopsis:

herr_t ss_array_resize(ss_array_t *array, size_t nelmts)

Formal Arguments:

  • array: Array whose size is to be changed.
  • nelmts: Number of total elements to be contained in the array.

Description: Elements can be added or removed from the end of an array. If items are added then they are also initialized to zero.

Return Value: Returns non-negative on success; negative on failure.

Parallel Notes: Independent. If more than one task changes the size of an array then they must all make identical changes to the size.

See Also: