摘要: 如何在程序中检测本系统的Endianess?可调用下面的函数来快速验证,如果返回值为1,则为Little Endian;为0则是Big Endian:int testendian() {int x = 1;return *((char *)&x);} 阅读全文
posted @ 2010-03-14 21:46 octoberfirst 阅读(331) 评论(0) 推荐(0) 编辑