title: C - Convert string to variable name
body: <p>How can I convert a string into a variable name? E.g. I have a list of strings:</p>
  
  <pre><code>     "str1", "str2", "str3", etc.
  </code></pre>
  
  <p>And a structure:</p>
  
  <pre><code>struct my_struct {  
         int str1;  
         int str2;  
         int str3;  
  } m = {5, 10, 15, ... etc};  
  </code></pre>
  
  <p>Given a string <code>"str2"</code>, I want to print the variable associated with that
  name <code>m.str2</code>. Does C have any way to do this?</p>
  
  <p>Thank you!</p>