How can i initialize a struct like this:
Code:
typedef struct
{
var test[3];
}teststruct;



This doesnt work
Code:
teststruct* bla=
{
 test[0]=1; test[1]=2; test[2]=1;
}


Neither this:
Code:
teststruct* bla=
{
 test={1,2,3};
}


whats the right way to do it?

Last edited by Puppeteer; 02/23/10 13:28.

Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com