diff options
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r-- | libbuild2/utility.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 0271642..5fffc8c 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -872,6 +872,18 @@ namespace build2 bool trim = true, sha256* checksum = nullptr); + // Concatenate the program path and arguments into a shallow NULL-terminated + // vector of C-strings. + // + LIBBUILD2_SYMEXPORT cstrings + process_args (const char* program, const strings& args); + + inline cstrings + process_args (const string& program, const strings& args) + { + return process_args (program.c_str (), args); + } + // File descriptor streams. // fdpipe |