hello,
So, if I converting ip address from 8-bit to int_32 type.
address = (((((ip[0]<<8)+ip[1])<<8)+ip[2])<<8)+ip[3];
But, which's way reverse that?
I tried this way
However. I've got a value prefix where has been that ip-address.Code:for (;i<4; ++i) id[i] = (address >> (i*8)) & 0xFF; printf("%u\n", id[i]);
How to do converting value from int_32 to 8-bit?