North American Network Operators Group Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical Re: interger to I P address
On 2008/08/27 05:22 PM Dave Israel wrote:
Aww come on, C gets way more "fun" than that ;) #define _u8 unsigned char #define _u32 unsigned long int main(void) { _u32 ipn = 1089055123; _u8 ipa[3]; _u8 oct = 0;
printf("%d.%d.%d.%d\n", ipa[0], ipa[1], ipa[2], ipa[3]); return 0; }
|