title: How to copy values from a structure to a char array
body: <p>Sorry if question is not clear. My vocabulary for terminology is bad. Anyways I want to set a string to be a structure. For example if my strucutre is define as:</p>
  
  <pre><code>struct all_routes{
    int id;
    char departure_code[4];
    char arrival_code[4];
  };
  struct all_routes all_routes_divid[500];
  </code></pre>
  
  <p>I add I want to set a string to contain values taken from one of the elements of this array of structures:</p>
  
  <pre><code>char firs_airport_code[4] = all_routes_divid[1].departure_code;
  </code></pre>
  
  <p>How can I do this?</p>