title: Structures inside linked lists in C
body: <p>I'm learning how to implement linked lists in C. I understand the basics of normal linked lists, how to add values, how to print them etc. but I've been wondering - is it possible to add other structure as a value in linked list? What I mean is:</p>
  
  <pre><code>typedef struct personal_info {
    char *name;
    char *surname;
    int phone_number;
  } Info;
  
  typedef struct llist {
    Info *info;
    struct llist *next;
  } List;
  </code></pre>
  
  <p>And when I do this, how do I access the values of the <code>Info</code> structure?</p>
  
  <pre><code>List *l;
  l = malloc(sizeof(List));
  
  l-&gt;info-&gt;name = 'name';
  l-&gt;info-&gt;surname = 'surname';
  l-&gt;info-&gt;phone_number = 1234567890;
  </code></pre>
  
  <p>The code crashes, so I'm definitely doing something wrong. Could you give me some tips how to achieve that?</p>