title: C program - linked list inside linked list
body: <p>Say I want to create a list of books, and those books have one or more authors, as well as main characters in the book.  What is the best way to create structures for this?  Would the below be accurate, or different set up?</p>
  
  <pre><code>struct name
  {
  char prefix[5];
  char first[50];
  char middle[50];
  char last[50];
  char suffix[5];
  struct name *next; /* linked list   */
  struct name *previous; /* linked list   */
  };
  
  
  struct book
  {
   struct name authors;  
   struct name main_characters;
  char title[100];   
  char publisher[100]; 
  </code></pre>
  
  <p>struct book *next; 
      struct book *previous; </p>
  
  <pre><code>};
  </code></pre>