.\" Man page generated from reStructuredText
.\" by the Docutils 0.23 manpage writer.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "PMIX_APP_CONSTRUCT" "3" "Nov 21, 2026" "" "OpenPMIx"
.sp
\fBPMIx_App_construct\fP — Initialize a caller\-provided
pmix_app_t(5) \%<#\:man5-pmix-app-t> structure.
.SH SYNOPSIS
.INDENT 0.0
.INDENT 3.5
.sp
.EX
#include <pmix.h>

void PMIx_App_construct(pmix_app_t *p);
.EE
.UNINDENT
.UNINDENT
.SS Python Syntax
.sp
No Python equivalent
.SH INPUT PARAMETERS
.INDENT 0.0
.IP \(bu 2
\fBp\fP: Pointer to the pmix_app_t(5) \%<#\:man5-pmix-app-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).
.UNINDENT
.SH DESCRIPTION
.sp
Initialize the memory of a pmix_app_t \%<#\:man5-pmix-app-t> that the caller
has already allocated. The function zeroes the entire structure, clearing the
\fBcmd\fP, \fBargv\fP, \fBenv\fP, and \fBcwd\fP pointers, setting \fBmaxprocs\fP to zero,
and setting the \fBinfo\fP pointer to \fBNULL\fP with \fBninfo\fP equal to zero. No
heap memory is allocated and no payload is attached.
.SH RETURN VALUE
.sp
\fBPMIx_App_construct\fP returns no value (\fBvoid\fP).
.SH NOTES
.sp
Because \fBPMIx_App_construct\fP operates on caller\-provided storage, it must be
paired with PMIx_App_destruct(3) \%<#\:man3-pmix-app-destruct> to release any
payload the app subsequently acquires. Do \fBnot\fP pass a constructed (as
opposed to created) app to PMIx_App_release(3) \%<#\:man3-pmix-app-release>
or PMIx_App_free(3) \%<#\:man3-pmix-app-free>, as those would attempt to free
storage the library did not allocate.
.SH EXAMPLES
.sp
Construct a structure:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
pmix_app_t app;

PMIx_App_construct(&app);
.EE
.UNINDENT
.UNINDENT
.sp
\fBSee also:\fP
.INDENT 0.0
.INDENT 3.5
PMIx_App_destruct(3) \%<#\:man3-pmix-app-destruct>,
PMIx_App_create(3) \%<#\:man3-pmix-app-create>,
PMIx_App_info_create(3) \%<#\:man3-pmix-app-info-create>,
PMIx_App_free(3) \%<#\:man3-pmix-app-free>,
PMIx_App_release(3) \%<#\:man3-pmix-app-release>,
pmix_app_t(5) \%<#\:man5-pmix-app-t>
.UNINDENT
.UNINDENT
.SH Copyright
2014-2026, OpenPMIx Community
.\" End of generated man page.
