This is the mail archive of the
mailing list for the GCC project.
Re: problem on inet_aton
- To: help-gcc at gnu dot org
- Subject: Re: problem on inet_aton
- From: Harm-Jan Zwinderman <hazw at coss dot nl>
- Date: Wed, 10 May 2000 10:06:20 +0200
- References: <01BFBA71.74F139A0@CITRIX1>
From my man pages :
unsigned long inet_addr(char *cp)
int inet_aton(const char *cp, struct in_addr *val)
The routine inet_addr interprets character strings representing numbers expressed in the Internet standard dot
notation, returning numbers suitable for use as Internet addresses and Internet network numbers,
respectively. The routine inet_addr is implemented in terms of inet_aton. The routine inet_aton allows for
disambiguation between an address of all ones (such as a local broadcast address) and an error condition.
inet_aton returns 1 if the address is valid, 0 otherwise.
Hoper this helps