ENDIAN.H(3HEAD) | Headers | ENDIAN.H(3HEAD) |
endian.h
—
definitions for endian routines
#include
<endian.h>
The <endian.h>
header defines functions and macros focused on converting data between the
host machines native byte order and big or little-endian values. While the
manual page details the macros defined by
<endian.h>
, the functions
are documented separately in
endian(3C). More information on
endianness and a general background on the topic can be found in
byteorder(7).
The <endian.h>
header defines the following macros:
To determine the byte order of a system, one may compare the BYTE_ORDER to one of the aforementioned macros.
In addition to the routines provided by this header, standardized functions may be found in byteorder(3C). The header types.h(3HEAD) also defines additional pre-processor symbols to determine the current endianness of the system.
byteorder(3C), endian(3C), types.h(3HEAD), attributes(7), byteorder(7)
August 2, 2018 | OmniOS |