I have the following struct that contains an unsigned char array and I don't know how to print the contents of the array within the struct in the following context.
The char array is null terminated.
typedef data_type
{
int a;
unsigned char b;
unsigned char c[33];
} DATA_TYPE, *DATA;
I create an instance of the struct
DATA data;
data = (DATA) malloc(sizeof(DATA_TYPE);
/* some code where I populate its values... */
printf("data->a = %d", data->a);
printf("data->b = %u", data->b);
printf("data->c = NOT SURE HOW TO PRINT THIS PART");