I have the following struct:
typedef struct{
char* name;
int score;
}Student;
typedef struct{
char* name;
int score;
}TeachingAssistant;
I have already strdup'd a string into the name variable in the Student struct.
I wanted to know how can I move that strdup'd name pointer variable to the TeachingAssistant struct so that I don't have to strdup again.