Works for me
Originally Posted by MK27
it prints exactly the same address I have put into the string, of course dereferencing this address will fail - because it is just some random value - low chance to have something available there - put the address of something accessable - and you will have no problem dereferencing it...
char sAddr = "0x00ac0098";
unsigned int uAddr = strtoul(sAddr,NULL,0);
void* pAddr = (void*) uAddr;