table of contents
- unstable 7.0.0~rc1-1
| PMIX_ENVAR_T(5) | OpenPMIx | PMIX_ENVAR_T(5) |
pmix_envar_t — Specifies a modification to an environment variable
SYNTAX¶
C Syntax¶
#include <pmix_common.h>
typedef struct {
char *envar;
char *value;
char separator;
} pmix_envar_t;
DESCRIPTION¶
The pmix_envar_t structure specifies a modification to be made to an environment variable. Standard environment variables (e.g., PATH, LD_LIBRARY_PATH, and LD_PRELOAD) take multiple arguments separated by delimiters. Unfortunately, the delimiters depend upon the variable itself — some use semi-colons, some colons, etc. Thus, the operation requires not only the name of the variable to be modified and the value to be inserted, but also the separator to be used when composing the aggregate value.
The fields are:
STATIC INITIALIZER¶
A statically declared pmix_envar_t may be initialized with the PMIX_ENVAR_STATIC_INIT macro, which sets envar and value to NULL and separator to the null character '\0':
pmix_envar_t envar = PMIX_ENVAR_STATIC_INIT;
See also:
Copyright¶
2014-2026, OpenPMIx Community
| September 27, 2026 |