exec-rs
exec-rs copied to clipboard
Rust wrapper around the C execvp function, which replaces the current process with the specified program and arguments.
It's not very common to encounter functions that return if there's an error, and diverge if there is no error. When using this crate, this wasn't very intuitive for me,...
Change also reformats source code using current rustfmt and makes some small fixes to get the code to compile using rustc 1.68.
Windows has the `_wexecvp` function in the C runtime which is the same as Unix's `execvp` but takes Windows wide strings for arguments instead. The biggest difference is that instead...