I've defined nodes in a linked list with the letters A through H like so:
A = (struct node*) malloc(sizeof *A);
I scanf in a string which names the next node and the name of the variable to change it to. So if I write "0B", I want it to take the character 'B' and point to the object that has the variable name B:
state->zero = B;
without having to explicitly write a function where I have a series of if statements that convert the text input to the pointer output based on input.
How do I do this?