码迷,mamicode.com
首页 > 其他好文 > 详细

小程序

时间:2015-04-28 11:11:38      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!