Possible Duplicate:
Copying one structure to another
struct node
{
int n;
struct classifier keys[M-1];
struct node *p[M];
}*root=NULL;
i have created newnode which is of type node
(*newnode)->keys[i]
i want to copy data to keys structure from structure clsf_ptr which is also of same type can i do it like this,i don't want to initialize each member function
memcpy((*newnode)->keys[i], clsf_ptr)