You use obj->x when obj is a pointer.

So like:
Code:
typedef struct mystruct {
  var val1;
  var val2;
} mystruct;

mystruct obj1;
mystruct* obj2 = sys_malloc(sizeof(mystruct));

obj1.val1 = 10;
obj2->val1 = 20;   // << Because obj2 is a pointer you use the arrow



LiteC does an automatic ->/. conversion. It's nice at the beginning but will screw everything when you advance.