Hi
I have a structure of members uint x,uint y (name is "ruudud") declared as global variable.
Iv declared structure and pointer to structure globally in following way:
struct ruudud{
unsigned int x: 6; // 64 max
unsigned int y: 6;
};
struct ruudud *r_ptr;
Iv allocated memory in following way: r_ptr = (struct ruudud*)calloc( lenght, sizeof(struct ruudud));
At this point i like to add progressively array elements to 2-nd dimention.
How i can do that? And how i can get components of array elements out of x-location from 2 dim arrays.
I can get information of x-location from 1 dim array by using: information = ((r_ptr + locationNumber) -> y);