.\" a few pieces remain from an earlier version
.\" Copyright (C) 2008, Nanno Langstraat <nal@ii.nl>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.TH ENDIAN 3 2010-09-10 "GNU" "Linux Programmer's Manual"
.SH NAME
The functions with names of the form "le\fInn\fPtoh" convert
from little-endian order to host byte order.
.SH VERSIONS
-These function were added to glibc in version 2.9.
-.SH "CONFORMING TO"
+These functions were added to glibc in version 2.9.
+.SH CONFORMING TO
These functions are nonstandard.
Similar functions are present on the BSDs,
where the required header file is
For example,
.BR be32toh ()
is identical to
-.BR ntohl () .
+.BR ntohl ().
The advantage of the
.BR byteorder (3)
main(int argc, char *argv[])
{
union {
- uint32_t u32;
- uint8_t arr[4];
+ uint32_t u32;
+ uint8_t arr[4];
} x;
x.arr[0] = 0x11; /* Lowest-address byte */
exit(EXIT_SUCCESS);
}
.fi
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR byteorder (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.