[#util-ExecVp]
= xref:util.adoc[util]::ExecVp
:relfileprefix: ../
:mrdocs:

Cross&hyphen;platform wrapper for POSIX execvp function&period; Arguments and return value are the same as for POSIX execvp, and the argv array should consist of null terminated strings and be null terminated itself, like the POSIX function&period;

== Synopsis

Declared in `&lt;util&sol;exec&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ExecVp(
    char const* file,
    char const* argv[]);
----

== Return Value

The execvp return value&semi; only returns on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file*
| The file to execute, resolved via PATH as in execvp&period;
| *argv*
| The null&hyphen;terminated argument array passed to the program&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
