Guest User

Untitled

a guest
Jun 3rd, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <assert.h>
  2. #include <rtapi_bitops.h>
  3.  
  4. int main()
  5. {
  6. long x = 1;
  7. int y = test_and_set_bit(31, &x);
  8. assert(!y);
  9. y = test_and_set_bit(31, &x);
  10. assert(y);
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment