//返回1说明是Little-Endian,否则为Big-Endianint CheckCpu(){ //联合体从低位开始存储 union w{ int i; char b; } u; u.i=1; return (u.b==1);}
C检测CPU架构为Little-Endian或Big-Endian.