Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <stddef.h>
  2.  
  3. typedef size_t foo_h;
  4. typedef size_t bar_h;
  5.  
  6. void foo(foo_h h) { (void)h; }
  7. void bar(bar_h h) { (void)h; }
  8.  
  9. int main(void)
  10. {
  11. foo_h f = 0;
  12.  
  13. foo(f);
  14. bar(f); /* Wrong handle type! */
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement