/*
*input:输入hex
input_len:输入长度
*output:输出str
*/
void hex2str(uint8 *input, uint16 input_len, char *output)
{
char zEncode[] = "0123456789ABCDEF";
int i = 0, j = 0;
for (i = 0; i < input_len; i++) {
output[j++] = zEncode[(input[i] >> 4) & 0xf];
output[j++] = zEncode[(input[i]) & 0xf];
}
}
HexToStr
最新推荐文章于 2022-04-07 08:29:59 发布