From: Oswald B. <os...@kd...> - 2004-08-10 11:15:39
|
On Tue, Aug 10, 2004 at 11:52:03AM +0100, Nicholas Nethercote wrote: > I want to initialise a static 2-d array in C. Is this possible? > > GCC complains about this: > > const char** a[] = { > [0] = { "one", "two", "three", NULL }, > [1] = { "four", "five", "six", NULL }, > }; > just leave out the "[<idx>] =" parts and everything will be fine. -- Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -- Chaos, panic, and disorder - my work here is done. |