Name: Anonymous 2011-08-18 5:28
C/C++ is retarded. I dont care about "types". They are all 32-bit integers anyway. Typing was invented by math imbeciles and good for nothing Ph.D parasite-jews.
Frozen*voids*
#include <stddef.h>
#include <stdio.h>
ptrdiff_t get_ptrdiff(void* a, void* b)
{
return (ptrdiff_t)b - (ptrdiff_t)a;
}
int main()
{
int i = 300, *a = &i;
char* b = "SPARTA";
printf("a = 0x%p\nb = 0x%p\nb - a = 0x%x\n", a, b, get_ptrdiff(a, b));
return 0;
}