J
John Boik
Hello. I have what I think is a simple newbie question, but I have had no
luck in finding an answer on the web or in books. I have a structure that
contains a string. Call it Struct.string. I also have a (gsl) function
that requires the string value that is contained in the structure. How do I
convert the variable Struct[1].string to its literal value? For example, if
"Bob" is the value stored in Struct[1].string, how do I convert the variable
name Struct[1].string to "Bob"? C does not seem to have an Evaluate
function to change a variable name to the value it contains.
Thanks,
John
(e-mail address removed)
luck in finding an answer on the web or in books. I have a structure that
contains a string. Call it Struct.string. I also have a (gsl) function
that requires the string value that is contained in the structure. How do I
convert the variable Struct[1].string to its literal value? For example, if
"Bob" is the value stored in Struct[1].string, how do I convert the variable
name Struct[1].string to "Bob"? C does not seem to have an Evaluate
function to change a variable name to the value it contains.
Thanks,
John
(e-mail address removed)