📄 endtest.c
字号:
/*************************************************************************** DSemu - The Next Generation ** Endianness test [endtest.c] ** Copyright Imran Nazar, 2005; released under the BSD public licence. ***************************************************************************/#include <stdio.h>int main(){ short a=1; // 2 bytes: 00 01 BE, 01 00 LE char *b=(char*)&a; // Pointer to the first byte if(!*b) printf("B"); // If the first byte is 0, we're big-endian // otherwise, no output to signify LE return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -