I would like to know how I can put a default values to Struct variables. In C++ it is possible, but this dont work in Lite-C. In C++ its something like this, if I remember correctly.
Code:
typedef struct TEST{
var x;
var y;
}TEST = {10,10};
When you allocate dynamically a struct, you just reserve a certain memory block. This block is filled with previous data. With the zero macro you can simply reset everything to 0.
When you need special initialization values, write a function in a constructor fashion: