title: Structs with pointer to next struct?
body: <p>I want to have a session where I insert totally 10 different integers in the <strong>size</strong> variable that is inside the linked list. I believe I should use result_register() for this?</p>
  
  <p>When all 10 integers are stored I want to print them out by typing <strong>result->size</strong>. </p>
  
  <p>I am new with linked lists so please be gentle.</p>
  
  <pre><code>struct result {   
      int size;
  };
  
  struct result* result_next()
  {
     // What do I type here?
  }
  
  void result_register(int size)
  {
      // What do I type here?
  }
  </code></pre>
  
  <p><strong>main</strong></p>
  
  <pre><code>struct result* result;
  
  while ((result = result_next()))
      printf("%d\n", result-&gt;size);
  </code></pre>
  
  <p>Then I want to be able to print out the results by doing like above.</p>