pub fn args_to_c_argv(&self) -> *const *const libc::c_char {
        let argv: *mut *mut libc::c_char = construct_libc_cstring_arr(self.args.len(), true);

        for i in 0..self.args.len() {
            let arg = &self.args[i];
            let c_string: *mut libc::c_char = construct_libc_cstring(arg);
            unsafe {
                *argv.offset(i as isize) = c_string;
            }
        }

        argv as *const *const libc::c_char
    }
/// Constructs the null-terminated argv-array on the heap.
/// Memory must be freed theoretically in order to have proper
/// memory management but because the address space content is
/// replaced after "exec()" you don't have to free it in
/// case of successful exec().
Constructs the null-terminated argv-array on the heap.
Memory must be freed theoretically in order to have proper
memory management but because the address space content is
replaced after "exec()" you don't have to free it in
case of successful exec().
Constructs the null - terminated argv - array on the heap . Memory must be freed theoretically in order to have proper memory management but because the address space content is replaced after " exec () " you don ' t have to free it in case of successful exec () .
pub fn args_to_c_argv(&self) -> *const *const libc::c_char {
        let argv: *mut *mut libc::c_char = construct_libc_cstring_arr(self.args.len(), true);
        for i in 0..self.args.len() {
            let arg = &self.args[i];
            let c_string: *mut libc::c_char = construct_libc_cstring(arg);
            unsafe {
                *argv.offset(i as isize) = c_string;
            }
        }
        argv as *const *const libc::c_char
    }
pub fn args_to_c_argv ( & self ) -> * const * const libc :: c_char { let argv : * mut * mut libc :: c_char = construct_libc_cstring_arr ( self . args . len ( ) , true ) ; for i in 0 .. self . args . len ( ) { let arg = & self . args [ i ] ; let c_string : * mut libc :: c_char = construct_libc_cstring ( arg ) ; unsafe { * argv . offset ( i as isize ) = c_string ; } } argv as * const * const libc :: c_char }
Constructs the null-terminated argv-array on the heap.
Constructs the null - terminated argv - array on the heap .
&self
&self