man.bsd.lv manual page server

Manual Page Search Parameters

GETBYTEORDER(3) Library Functions Manual GETBYTEORDER(3)

getbyteorderget the current byte order

library “libutil”

#include <util.h>
#include <sys/endian.h>

int
getbyteorder(void);

() returns LITTLE_ENDIAN, BIG_ENDIAN, or -1 in case of an error, setting the global errno variable. The possible values for errno are the same as in sysctl(3).

sysctl(3)

The getbyteorder() function call appeared in NetBSD 7.0.

May 1, 2013 NetBSD-9.2