I need to write a C program to convert an IP address, in IPv6 format, (that is in hexadecimal)
to the standard IP address format (that is 255.255.255.255).
a1b2:c3d4 after conversion : 18.104.22.168
I found a way to do that using the strtol() function but I know there are functions that can manipulate IPv4 or IPv6 addresses
such as inet_ntoa(), inet_aton(), inet_pton(), inet_ntop()
I would like to know if there is a way to make such conversion using one of these functions.
any idea ?
thanks for your help