About 5 years ago, I managed to convert a pointer to a int, store it temporarily and then take that int and convert it back to a pointer (Objective-C). But I can't for my life remember how I did it.
Can anyone help me out?
About 5 years ago, I managed to convert a pointer to a int, store it temporarily and then take that int and convert it back to a pointer (Objective-C). But I can't for my life remember how I did it.
Can anyone help me out?
int a = (int)p;
Something like that? But why? Why not just using void*?