Code:
#define jauns(struktura) sys_malloc(sizeof(struktura))
#define jauni(struktura,daudzums) sys_malloc(daudzums*sizeof(struktura))

typedef struct 
{
   int i;
}Str;

function main()
{
   Str* otrs;
Str* tress;
   Str* int_mas = jauni(Str, 10);
   int lok_i;
   for(lok_i = 0; lok_i<10; lok_i++)
   {
      int_mas[lok_i].i = lok_i;
   }
   otrs = int_mas;
tress = int_mass[0];//dont vork anymore
}


So this is all right?
Strange feeling about struct array vho already is throughout initialized.
But here is problem - i cant point out just to one element.
Its vhat i said - nov i need copy it and its so unright.

Last edited by Arrovs; 07/09/12 22:59.

Arrovs once will publish game