Skip to content

ANLAB-KAIST/rust-ffi-extra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extra FFI Tools

Build Status

run_with_args

Compose C-like argument vector from rusty string vectors. Call a 'main-like' function with given arguments.

use ffi_extra::run_with_args;

let args = vec!["bin_name", "first_arg"];
unsafe { run_with_args(ffi_main, &args) };

let args = vec![String::new("bin_name"), String::new("first_arg")];
unsafe { run_with_args(ffi_main, &args) };

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages