.\" Add discussion of Classful Addressing, noting that it is obsolete.
.\" Added an EXAMPLE program.
.\"
-.TH INET 3 2013-02-10 "GNU" "Linux Programmer's Manual"
+.TH INET 3 2014-05-28 "GNU" "Linux Programmer's Manual"
.SH NAME
inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof,
inet_netof \- Internet address manipulation routines
.sp
.BI "char *inet_ntoa(struct in_addr " in );
.sp
-.BI "struct in_addr inet_makeaddr(int " net ", int " host );
+.BI "struct in_addr inet_makeaddr(in_addr_t " net ", in_addr_t " host );
.sp
.BI "in_addr_t inet_lnaof(struct in_addr " in );
.sp
.I b
is interpreted as a 24-bit value that defines the rightmost three bytes
of the binary address.
-This notation is suitable for specifying (outmoded) Class C
+This notation is suitable for specifying (outmoded) Class A
network addresses.
.TP
.I a
.IR "IPv4 dotted-decimal notation"
(or sometimes:
.IR "IPv4 dotted-quad notation" ).
+
+.BR inet_aton ()
+returns 1 if the supplied string was successfully interpreted,
+or 0 if the string is invalid
+.RB ( errno
+is
+.I not
+set on error).
.PP
The
.BR inet_addr ()
.BR inet_aton (),
.BR inet_pton (3),
or
-.BR getaddrinfo (3)
+.BR getaddrinfo (3),
which provide a cleaner way to indicate error return.
.PP
The
.BR gethostbyname (3),
.BR getnameinfo (3),
.BR getnetent (3),
+.BR inet_net_pton (3),
.BR inet_ntop (3),
.BR inet_pton (3),
.BR hosts (5),
.BR networks (5)
.SH COLOPHON
-This page is part of release 3.64 of the Linux
+This page is part of release 3.79 of the Linux
.I man-pages
project.
A description of the project,
-and information about reporting bugs,
+information about reporting bugs,
+and the latest version of this page,
can be found at
\%http://www.kernel.org/doc/man\-pages/.