Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stddef.h>
- typedef size_t foo_h;
- typedef size_t bar_h;
- void foo(foo_h h) { (void)h; }
- void bar(bar_h h) { (void)h; }
- int main(void)
- {
- foo_h f = 0;
- foo(f);
- bar(f); /* Wrong handle type! */
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement