Scroll to navigation

PMIX_REGEX2_FREE(3) OpenPMIx PMIX_REGEX2_FREE(3)

PMIx_Regex2_free — Release an array of pmix_regex2_t(5) <#man5-pmix-regex2-t> structures.

SYNOPSIS

#include <pmix.h>
void PMIx_Regex2_free(pmix_regex2_t *d, size_t n);


Python Syntax

No Python equivalent

INPUT PARAMETERS

  • d: Pointer to the array of pmix_regex2_t structures to be released.
  • n: Number of structures in the array.

DESCRIPTION

Release an array of pmix_regex2_t structures that was previously obtained from PMIx_Regex2_create(3) <#man3-pmix-regex2-create>. Each of the n elements is destructed — its type and bytes allocations are freed — and then the array storage itself is freed.

If d is NULL, the call is a no-op.

RETURN VALUE

PMIx_Regex2_free returns no value (void).

NOTES

PMIx_Regex2_free is the counterpart to PMIx_Regex2_create(3) <#man3-pmix-regex2-create>. It both destructs the contents of each element and frees the block of memory holding the array. To release only the contents of a single caller-owned structure without freeing its storage, use PMIx_Regex2_destruct(3) <#man3-pmix-regex2-destruct> instead.

See also:

PMIx_Regex2_create(3) <#man3-pmix-regex2-create>, PMIx_Regex2_construct(3) <#man3-pmix-regex2-construct>, PMIx_Regex2_destruct(3) <#man3-pmix-regex2-destruct>, pmix_regex2_t(5) <#man5-pmix-regex2-t>


Copyright

2014-2026, OpenPMIx Community

September 27, 2026