summaryrefslogblamecommitdiff
path: root/src/network/inet_aton.c
blob: ea4ee1650ab4e72d92c8cd16c1043c02db36af7c (plain) (tree)
1
2
3
4
5
6
7






                                                       
#include <sys/socket.h>
#include <arpa/inet.h>

int inet_aton(const char *cp, struct in_addr *inp)
{
	return inet_pton(AF_INET, cp, (void *)inp) > 0;
}