Weakly reset a string

ss_string_realloc is a function defined in ssstring.c.

Synopsis:

herr_t ss_string_realloc(ss_string_t *str)

Description: Sometimes we want a variable length string to keep the same value it had but to be reallocated in the string backing store. For instance, when a variable length string is copied from one scope to another we want to to keep the same value but it cannot continue to have the same dataset offset since the new scope has a completely different dataset for string storage.

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

Parallel Notes: Independent

See Also:

  • Strings: Introduction for current chapter