I want to printf
the values of ipv6 address whose type is struct in6_addr
and ipv4 address whose type is u_int32_t
to console.
I have tried type casting but it yields error
error: aggregate value used where an integer was expected
printf("---------------- ipv4= %zu ipv6 = %zu ",(size_t)ipv4, (size_t)ipv6);
I have also tried %s ,%lu
and many other ways after going through the old question in stack overflow and other places .
If anyone has a solution to it I shall be greatly thankful .