htonl(3n) hpux man page | unix.com

Man Page: htonl

Operating Environment: hpux

Section: 3n

byteorder(3N)															     byteorder(3N)

NAME
htonl(), htons(), ntohl(), ntohs() - convert values between host and network byte order
SYNOPSIS
DESCRIPTION
These routines convert 16- and 32-bit quantities between network byte order and host byte order. On HP-UX systems, network and host byte orders are identical, so these routines are defined as null macros in the include file If is defined then these routines are defined in the include file These routines are most often used in conjunction with Internet addresses and ports as returned by and (see gethostent(3N) and getser- vent(3N)). Use these routines to write portable programs.
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
gethostent(3N), getservent(3N).
STANDARDS CONFORMANCE
byteorder(3N)
Related Man Pages
htonl(3socket) - sunos
htons(3) - mojave
ntohs(3) - mojave
htons(3socket) - sunos
ntohl(3socket) - sunos
Similar Topics in the Unix Linux Community
Not able to compile C program on z/OS (USS)
Child threads communicating with main thread via pipes
Event driven programming / epoll / typedef union / session data array
Warning: pointer type mismatch