On 11/9/12 12:10 AM, Amit Jain wrote:
now I want to write a rust-gui.rs <http://rust-gui.rs>  ( a rust wrapper
for this), but could not get any idea how to
supply the argc and argv .

rust-gui.rs <http://rust-gui.rs>
============

use libc::{c_char, c_void, c_int, c_uint};
//use std;
extern mod gui{
   fn showGtkUI(argc:c_int, argv:**c_char);
}


fn main( /* what can be args */ ) {
     // what should I do here.
}


i tried vec [str] etc but every time i get compile errors.

Call os::args(). That returns you a vector of strings containing the arguments.

Patrick

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to