Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #[no_mangle]
  2. pub extern "C" fn hello(count: i32) -> bool {
  3. if count < 0 {
  4. println!("A negative count is not supported.");
  5. return false;
  6. }
  7.  
  8. for i in 0..count {
  9. println!("Hello, World: {}", i);
  10. }
  11.  
  12. return true;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement