inet_net_pton() alternative for IPv6
Ian Pilcher
arequipeno@gmail.com
Mon Jul 4 18:07:59 GMT 2022
I am searching for the best way to parse both IPv4 and IPv6 CIDR-
formatted addresses. I have found inet_net_pton(), but it only supports
IPv4 (AF_INET) addresses.
Needless to say, this is pretty disappointing in 2022. Is there an
alternative API that I should be using, or am I stuck writing my own?
Thanks!
--
========================================================================
Google Where SkyNet meets Idiocracy
========================================================================
More information about the Libc-help
mailing list