As i a writting small C program to pass the structure pointer in the functio
n. i am endup with small problem, plz let me know how to crack this one?
thanks and Regards,
void function1(void *);
int size_offset = 0;
A *pst = NULL;
pst = (A*)malloc(sizeof(A)*1);
void function1(void *pStr)
// As i need to intialize the structure members. i want to access it's me
// How can i know the structure's
// memory layout in this function?
//1. i do not want to declare the structure as global or static.
//2. I will pass the structure pointer as void pointer.