static const unsigned char pkt1[89] = {
0x00, 0x00, 0x5e, 0x00, 0x01, 0x12, 0x00, 0x18, /* ..^..... */
0x82, 0x5e, 0x5a, 0xf6, 0x08, 0x00, 0x45, 0xb8, /* .^Z...E. */
0x00, 0x4b, 0x9d, 0x0d, 0x00, 0x00, 0x3f, 0x11, /* .K....?. */
};
/* Frame (89 bytes) */
static const unsigned char pkt2[89] = {
0x00, 0x00, 0x5e, 0x00, 0x01, 0x12, 0x00, 0x18, /* ..^..... */
0x82, 0x5e, 0x5a, 0xf6, 0x08, 0x00, 0x45, 0xb8, /* .^Z...E. */
0x00, 0x4b, 0x9d, 0x25, 0x00, 0x00, 0x3f, 0x11, /* .K.%..?. */
}
....
...
till pkt[100];
int main()
{
char buff[10]="pkt";
for(i=0;i<100;i++)
{
itoa(1,buff+3,10);
printf("%s",buff);
}
}
From the above code I am able to see the concatenated name as pkt1 / pkt2... till pkt100. But I dont know how can I access the elements of pkt1 now. Any suggestions how to do it are welcome. Can I do this runtime ?