This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem on inet_aton


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
Harm-Jan Zwinderman



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]