On 2/6/07, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
Try this one:#include <ns.h> main() { unsigned char b[4]; struct in_addr addr; addr.s_addr = inet_addr("127.0.0.1"); memcpy(b, &addr.s_addr, 4); printf("%u.%u.%u.%u\n", b[0], b[1], b[2], b[3]); }
That produces 127.0.0.1 on OpenBSD 4.0/sparc64 :-) Michael