logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ms_bigendianhost - Determine host computer byte order

Author

       Chad Trabant
       IRIS Data Management Center

Libmseed API                                       2004/11/22                                MS_BIGENDIANHOST(3)

Description

ms_bigendianhost  is  a run-time test of host computer byte order.  It is assumed that there are only two
       possible byte orders: Most Significant Byte First (MSBF), i.e. big-endian,  and  Least  Significant  Byte
       First (LSBF), i.e. little-endian.  No middle-endian schemes are accounted for.

       Binary quantities in SEED are commonly big-endian, but it is not necessarily so.

Name

       ms_bigendianhost - Determine host computer byte order

Return Values

ms_bigendianhost returns 1 if the host is big-endian and 0 if the host is little-endian.

Synopsis

#include<libmseed.h>intms_bigendianhost();

See Also