Hi all,
I have this struct:
And I have this array:Code:typedef struct { U16 size; void *str; } test_t;
So I need to get a different pointer according array position.Code:test_t get[2] = { {sizeof(test1_t), (test1_t *)malloc(sizeof(test1_t))}, {sizeof(test2_t), (test_t *)}, };
But It is wrong, could you tell me how to do this?
Thanks a lot.
[]'s