I don't understand what this line does:
((struct Example*) 0x10000)
I've written a test program:
#include <stdio.h>
struct Elf{
int bla;
char bla2;
};
int main(){
struct Elf *elfPtr;
printf("Before casting: %p\n", elfPtr);
elfPtr = ((struct Elf *)0x10000);
printf("After casting: %p\n", elfPtr);
return 0;
}
The output is:
Before casting: 0xb776dff4
After casting: 0x10000
Does this line only do this?
elfPtr = 0x10000