|HTONL(3)||Library Functions Manual||HTONL(3)|
htons() functions convert quantities from host to
network byte order while the
ntohs() functions convert in the other
The last letter (‘s’ or ‘l’) is a
mnemonic for the traditional names for such quantities,
respectively. Today, the C concept of
long integers need not coincide with this
traditional misunderstanding. On machines which have a byte order which is
the same as the network order, routines are defined as null macros.
ntohs() functions conform to IEEE Std 1003.1 (“POSIX.1”). 4.2BSD.
|February 13, 2019||OpenBSD-current|