指针交流
分析这段源码的意图void data_convert2(uint8 *src_addr, uint8 *dst_addr, int data_lenth)
{
uint32 ptr, cnt = 0;
//if (g_ud_stop_by_tts == 1)
// return;
while (data_lenth >= 3)
{
data_lenth -= 3;
*dst_addr++ = 0;
*dst_addr++ = *src_addr++;
*dst_addr++ = *src_addr++;
*dst_addr++ = *src_addr++;
cnt++;
}
ptr = cnt * 4;
}
页:
[1]