(lib network) Should inet_aton be called instead of inet_addr ?

Ian Lynagh igloo at earth.li
Mon Sep 22 14:45:48 EDT 2008

Hi Marc,

On Thu, Sep 18, 2008 at 02:32:45AM +0200, Marc Weber wrote:
> Reading http://linux.die.net/man/3/inet_addr I noticed that 
> inet_addr is obsolete and inet_aton should be used because inet_addr
> indicates error by returning -1 which is a valid address (
> as well.
> Don't know wether it's worth changing or wether inet_aton is peresent on
> all systems

It sounds like we shouldchange, although I too don't know how portable
inet_aton is. Could you file a proposal please?:


More information about the Libraries mailing list