title: copying over data from a union in C
body: <p>I've got a pointer to a struct with a union</p>
  
  <p>so let's say we have</p>
  
  <pre><code>struct A {
    union {
      char **word;
      struct A *B
    } u;
  };
  </code></pre>
  
  <p>and I have variables x and y of type A*</p>
  
  <pre><code>typedef A* A_t;
  A_t x;
  A_t y;
  </code></pre>
  
  <p>would x->u = y->u be enough to copy over stuff in the union.</p>