Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void swap(void* a, void*b, int size) {
- int i = 0;
- while(i < size) {
- char tmp = *((char*)b + i);
- *((char*)b + i) = *((char*)a + i);
- *((char*)a + i) = tmp;
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement