1MS_BIGENDIANHOST(3) Library Functions Manual MS_BIGENDIANHOST(3)
2
3
4
6 ms_bigendianhost - Determine host computer byte order
7
8
10 #include <libmseed.h>
11
12 int ms_bigendianhost ();
13
14
16 ms_bigendianhost is a run-time test of host computer byte order. It is
17 assumed that there are only two possible byte orders: Most Significant
18 Byte First (MSBF), i.e. big-endian, and Least Significant Byte First
19 (LSBF), i.e. little-endian. No middle-endian schemes are accounted
20 for.
21
22 Binary quantities in SEED are commonly big-endian, but it is not necesā
23 sarily so.
24
25
27 ms_bigendianhost returns 1 if the host is big-endian and 0 if the host
28 is little-endian.
29
30
32 Chad Trabant
33 IRIS Data Management Center
34
35
36
37Libmseed API 2004/11/22 MS_BIGENDIANHOST(3)