string array help

Hi, I'm bit of a newbie to C and trying to store a list of RFid tags in a string array.
I get to use “char* RFid_tag[9];” , where RFid_tag[?] is now a pointer to the string and not the string itself.
How do you set each of the string arrays to hold 13 chars ?.
The only method I can workout with my limited knowledge of C is :-

RFid_tag[1] = " ";
RFid_tag[2] = " ";
RFid_tag[3] = " ";
RFid_tag[4] = " ";
RFid_tag[5] = " ";
RFid_tag[5] = " ";
RFid_tag[6] = " ";
RFid_tag[7] = " ";
RFid_tag[8] = " ";

I want to do something like RFid [ 8 array] [ 13 chars in the array ]

char RFID_tag[][13+1] = {
  "idhere",
  "idhere",
  //continue
};

:slight_smile:

I don`t want to pre define them in code , but wish in add then from collected data.

I`m wanting to know how to preallocate the space needed to store the strings.

char RFID_tag[8][13+1];

:slight_smile:

thanks.

I guess it was something like that.
I tried rfid_tag[8,13]