table of contents
| PMIX_LOAD_NSPACE(3) | OpenPMIx | PMIX_LOAD_NSPACE(3) |
PMIx_Load_nspace — Load a string into a pmix_nspace_t(5) <#man5-pmix-nspace-t>
SYNOPSIS¶
#include <pmix.h> void PMIx_Load_nspace(pmix_nspace_t nspace, const char *str);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- nspace: The pmix_nspace_t(5) <#man5-pmix-nspace-t> (a fixed-size character array) into which the string is to be loaded. The storage must already exist — it is supplied by the caller.
- str: Pointer to a NULL-terminated string to be copied into nspace. May be NULL.
DESCRIPTION¶
Load the contents of a NULL-terminated string into a pmix_nspace_t <#man5-pmix-nspace-t>. The function first zeroes the entire namespace array (all PMIX_MAX_NSLEN + 1 bytes) and then, if str is non-NULL, copies up to PMIX_MAX_NSLEN characters from str into it. A string longer than PMIX_MAX_NSLEN is silently truncated; the result is always properly NULL-terminated. If str is NULL the namespace is simply left cleared (all zeroes), which is the invalid/empty namespace value.
RETURN VALUE¶
PMIx_Load_nspace returns no value (void).
NOTES¶
PMIx_Load_nspace is an OpenPMIx convenience routine and is the backing implementation of the PMIX_LOAD_NSPACE macro.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |