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

Marc Weber marco-oweber at gmx.de
Wed Sep 17 20:32:45 EDT 2008


Hi @ll

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 (255.255.255.0)
as well.
Don't know wether it's worth changing or wether inet_aton is peresent on
all systems

Marc Weber


More information about the Libraries mailing list