Skip to content

Commit 54e3edb

Browse files
committed
reorder
1 parent 821d704 commit 54e3edb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

network.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,7 @@
807807
\hlabel{IPv4_IPv6_ADDRESSES}
808808

809809
\begin{itemize}
810+
\item \texttt{n} stands for \texttt{network}, \texttt{p} stands for \texttt{presentable}
810811
\item The functions are declared in \texttt{arpa/inet.h}.
811812
\item \texttt{inet\_pton} returns 1 if the conversion successfully happened,
812813
0 if given string is not an address or -1 if \emph{\texttt{af}} is not supported
@@ -817,12 +818,10 @@
817818
specifying the size. This is not a problem since according to the value of
818819
\texttt{af} appropriate address structure or character array can be passed in.
819820
For maximal lengths of strings for addresses, 2 macros can be used --
820-
\texttt{INET\_ADDRSTR\-LEN} (16) or \texttt{INET6\_ADDRSTRLEN} (48).
821+
\texttt{INET\_ADDRSTR\-LEN} (16) or \texttt{INET6\_ADDRSTRLEN} (48).
821822
These values contain space for terminating \texttt{\bs{}0}.
822823
\item \texttt{size} is string size of \texttt{dst}. If not sufficient, the call
823824
will fail and \texttt{ENOSPC} will be set.
824-
\item \texttt{n} stands for \texttt{network}, \texttt{p} stands for
825-
\texttt{presentable}
826825
\item In the past \texttt{inet\_aton} and \texttt{inet\_ntoa} (\texttt{a} as
827826
\texttt{ascii}) were used for IPv4 addresses. Thanks to the functions above
828827
these are now legacy. All these calls are usually documented in the

0 commit comments

Comments
 (0)