#include <stdio.h>
#include <string.h>
#include <stdint.h>
int main()
{
uint8_t num[10] = {0xaa,0xbb,0xcc,0xdd,0xee,0xff};
char str[3];
int j = 0;
char buffer[500]="";
for(uint8_t i = 0; i < 10; i++ )
{
sprintf(str, "%x ", num[i]);
strcat(buffer, str);
}
printf("string:\n%s\ncharacter count = %d\n", buffer, j);
return 0;
}