⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 endtest.c

📁 一个任天堂掌上游戏机NDS的源代码
💻 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 + -