execle function
Execute PATH with all arguments after PATH until a NULL pointer, and the argument after that for environment.
Implementation
int execle(
String path, // ffi.Pointer<Utf8> __path,
String arg, // ffi.Pointer<Utf8> __arg,
) {
final cPath = path.toNativeUtf8();
final cArg = arg.toNativeUtf8();
_execle ??= Libc().dylib.lookupFunction<
ffi.Int32 Function(ffi.Pointer<Utf8>, ffi.Pointer<Utf8>),
_dart_execle>('execle');
final result = _execle!(
cPath,
cArg,
);
malloc
..free(cPath)
..free(cArg);
return result;
}