uint32_t i=0x01020304 char s[4]; memcpy(s,i,4); s[0]=04 s[1]=03 s[2]=02 s[3]=01 转载于:https://my.oschina.net/u/153917/blog/181135