标签:
void u16_outlento_u8(unsigned char *d,unsigned char len,unsigned int *s)
{
unsigned char i=0,j=0;
for(;i<len||j<len;i++,j++)
{
*d++=(unsigned char)(*s/0x100);
//printf("0x%x\n",*d);
if(++j<len)
{
*d++=(unsigned char)(*s%0x100);
//printf("0x%x\n",*d);
}
}
}
标签:
原文地址:http://www.cnblogs.com/jieruishu/p/4462125.html