title: Difficulty to copy a char * in an unsigned char (struct element)
body: <p>I don't find any solutions to my problem, I think it's easy, but not for me.
  My second <code>strcpy</code> doesn't work, how can I put <code>word2</code> in <code>var2</code>?</p>
  
  <pre><code>/* struct */
  struct StructName {
      char var1[15];
      unsigned char var2;
  };
  /*main*/
  int main(void) {
      char *word1;
      char *word2;
      struct StructName Name;
      char line[] = "abc=12 xxxxxxxxx";
      word1 = strtok(line, " "); 
      word1 = strtok(word1, "=");
      word2 = strtok(NULL, "=");
      if ((strcmp(word1, "abc"))==0) {
          strcpy(Name.var1, word1);
          printf("%s", Name.var1);
          strcpy(Name.var2,(unsigned char)word2);
          printf("%d", Name.var2);
      }
      return 0;
  }
  </code></pre>