Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  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. ...);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement