title: confused with structs and pointers
body: <p>I am trying to fill a struct with strings. </p>
  
  <pre><code>struct person {
      char *name
      char age
  };
  
  int record_values(struct person *dude, const char *his_name, char his_age) 
  {
      dude-&gt;name = malloc(strlen(his_name)*sizeof(char));    //Get space for name
      strcpy(dude-&gt;name, his_name);                          //Set name
      strcpy(dude-&gt;age, his_age);                            //Set age
  }
  </code></pre>
  
  <p>However this doesn't work. Any help?</p>