Hi All,

Can someone tell me if this is the correct way to create, reference and allocate mem for this data?

Code:
int main()
{
	char *char_table[2][1];

	char_table[0][0] = strdup("a string in pos 0,0");
	char_table[0][1] = strdup("a string in pos 0,1");

	char_table[1][0] = strdup("a string in pos 1,0");
	char_table[1][1] = strdup("a string in pos 1,1");
}
Although this works, it's causing memory problems in a bigger program.

Many thanks,

rotis23