我正在C读到一个方案(一个服务器/客户通信的实施)。
for (i = 0; i < len; i++)
sprintf(nickmsg+i*2, "%02X", buf[i] & 0xFF);
What does this line do? I don t understand this especially: nickmsg+i*2
.
nickmsg
is a char table and i
is an integer. If it was just nickmsg
, ok I ll understand but there what s the aim of this line ?
感谢。