Evaluation in member access (dot) operator (c programming)

Solution for Evaluation in member access (dot) operator (c programming)
is Given Below:

I have the following code

typedef struct {const char* Name; …} ST;

ST s;

….

const char* elem = sqlite3_column_name(stmt, 1);

printf(“Check elem %s “, elem); // here works, i obtain the col name

scanf(“%s”, val);

*s.elem = val; //here it doesn’t work, error: ‘ST’ has no member ‘elem’

IT seems that the right hand side of The dot operator is not evaluated as a string variable.

I tried

*(s.elem) = val;

*(s.(elem)) = val;

*s.(elem) = val;

but nothing works.

Thanks for any help.