SHARE
TWEET

Untitled

a guest Jul 17th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Extern Declaration (original form)
  2. pub fn os_task_init(
  3.   t:    *mut os_task,
  4.   name: *const c_char,
  5.   func: os_task_func_t,
  6.   ...);
  7.                                    
  8. // (1) Wrapper Declaration Form
  9. pub fn task_init(
  10.   t:    Out<os_task>,
  11.   name: &Strn,
  12.   func: os_task_func_t,
  13.   ...);
  14.  
  15. // (2) Validation Statement Form
  16. Strn::validate_bytestr(name.bytestr);
  17.  
  18. // (3) Call Expression Form
  19. os_task_init(
  20.   t as *mut os_task,
  21.   name.bytestr.as_ptr() as *const c_char,
  22.   func as os_task_func_t,
  23.   ...);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top