Report question

Question: Tell whether a text string is an IPv6 address or IPv4 address using standard C sockets API