typedef struct
{
var test[3];
}teststruct;
teststruct* bla() {
teststruct* tempStruct = sys_malloc( sizeof(teststruct) );
var i;
for(i=0; i<3; i++) {
tempStruct.test[i] = 0;
}
return(teststruct);
}
I have it like that, should work.
regards,
Last edited by Helghast; 02/23/10 13:36. Reason: sys_malloc, not sys_nxalloc for this :)