inet_pton

 

#include <arpa/inet.h>

 

       int inet_pton(int af, const char *src, void *dst);

 

DESCRIPTION

       This  function converts the character string src into a network address

       structure in the af address family, then  copies  the  network  address

       structure to dst.  The af argument must be either AF_INET or AF_INET6.

 

你可能感兴趣的:(net)