table of contents
| PMIX_COORD_CONSTRUCT(3) | OpenPMIx | PMIX_COORD_CONSTRUCT(3) |
PMIx_Coord_construct — Initialize a caller-provided pmix_coord_t(5) <#man5-pmix-coord-t> structure.
SYNOPSIS¶
#include <pmix.h> void PMIx_Coord_construct(pmix_coord_t *m);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- m: Pointer to the pmix_coord_t(5) <#man5-pmix-coord-t> structure to be initialized. The storage for the structure itself must already exist — it is supplied by the caller (typically declared on the stack or embedded within another object).
DESCRIPTION¶
Initialize the fields of a pmix_coord_t <#man5-pmix-coord-t> that the caller has already allocated. The function sets the view field to PMIX_COORD_VIEW_UNDEF, the coord pointer to NULL, and the dims field to zero. No heap memory is allocated and no coordinate array is attached.
RETURN VALUE¶
PMIx_Coord_construct returns no value (void).
NOTES¶
Because PMIx_Coord_construct operates on caller-provided storage, it must be paired with PMIx_Coord_destruct(3) <#man3-pmix-coord-destruct> to release any coordinate array the structure subsequently acquires. Do not pass a constructed (as opposed to created) structure to PMIx_Coord_free(3) <#man3-pmix-coord-free>, as that would attempt to free storage the library did not allocate.
The convenience macro PMIX_COORD_CONSTRUCT is provided as a direct wrapper around this function.
EXAMPLES¶
Construct a structure:
pmix_coord_t coord; PMIx_Coord_construct(&coord);
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |