uint_8 checksystem() { union check { int i; char ch; }c; c.i=1; return (c.ch==1); } 返回0代表是大端.返回1代表小端.