inet_ntoa(), inet_aton(), inet_addr
Convert IP addresses from a dots-and-number string to a
Prototypes
#include #include #include // ALL THESE ARE DEPRECATED! Use inet_pton() or inet_ntop() instead!! char *inet_ntoa(struct in_addr in); int inet_aton(const char *cp, struct in_addr *inp); in_addr_t inet_addr(const char *cp);
Reference:
http://www.retran.com/beej/inet_ntoaman.html
沒有留言:
張貼留言