int index;
char hexString[512];
memset(hexString,
0x0,
sizeof(hexString));
for (index
= 0; index < byteArray.length; ++index) {
sprintf(hexString+index*3, "%02X ",
byteArray[index]);
}
printf("Hex
String : %s\n", hexString);