int32_t ut_addr_v6[4]; void *ptr; unsigned char *ptr1; ptr = ut_addr_v6; ptr1=ptr; printf("%u.%u.%u.%u\n",ptr1[0],ptr1[1],ptr1[2],ptr1[3]);