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

📄 endian.c

📁 cryptlib是功能强大的安全工具集。允许开发人员快速在自己的软件中集成加密和认证服务。
💻 C
字号:
/* This is a lowest-common-denominator program which should compile under
   the default cc on any system, no matter how primitive (even the SunOS
   one - note the use of 1970s-vintage octal escapes).  This is necessary
   because it's compiled before we can try and select a decent compiler via
   the makefile */

#include <stdio.h>
#include <stdlib.h>

int main()
	{
	if( *( long * ) "\200\0\0\0\0\0\0\0" < 0 )
		printf( "-DDATA_BIGENDIAN" );
	else
		printf( "-DDATA_LITTLEENDIAN" );

	return( 0 );
	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -