Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5 6 7 8 9 10 11
#ifdef SYS_ENDIAN #include <sys/endian.h> #else #include <endian.h> #endif int main(void) { return htobe32(be32toh(0x3a7d0cdb)) != 0x3a7d0cdb; }