Linux内核中大小端判定宏
生活随笔
收集整理的這篇文章主要介紹了
Linux内核中大小端判定宏
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#include <stdio.h>static union{ char c[4];unsigned long mylong;} endian_test = { {'l','?','?','b'} };
#define ENDIANNESS ( (char) endian_test.mylong )int main()
{printf("%c",ENDIANNESS);
}
略顯簡潔
轉載于:https://www.cnblogs.com/wanliyun/p/4663577.html
總結
以上是生活随笔為你收集整理的Linux内核中大小端判定宏的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 方案猿身高project联赛,艺术家,相
- 下一篇: Linux中设置定期备份oracle数据