title: Convert String to a Linked List
body: <p>1) I need to read in a string from a file and convert that string to a linked list </p>
  
  <p>So...If i read in this string "Some String"</p>
  
  <p>The linked list will look like this</p>
  
  <p>node1  - "S"</p>
  
  <p>node2  - "o"</p>
  
  <p>node3  - "m"</p>
  
  <p>node4  - "e"</p>
  
  <p>node5  - NULL</p>
  
  <p>node6  - "S"</p>
  
  <p>node7  - "t"</p>
  
  <p>node8  - "r"</p>
  
  <p>node9  - "i"</p>
  
  <p>node10 - "n"</p>
  
  <p>node11 - "g"</p>
  
  <p>node12 - NULL</p>
  
  <p>NULL would be issued for " " (spaces) and for "\0" null character </p>
  
  <p>Whats the best way to implement this..</p>
  
  <pre><code>typedef struct node
  {
  // each node holds a single character
  char data;
  
  // pointer to next node in linked list
  struct node *next;
  } node;
  
  int i;
  char buffer[1032];
  
      FILE *ifp = fopen("file.txt", "rb");
  
      //read the first line of file
      fscanf(ifp, "%s", buffer);
  
  node *myList = malloc(sizeof(node));
  
  for(i = 0; i &lt; strlen(buffer); i++)
      /*I DON'T KNOW WHAT TO DO HERE!!!!*/
  </code></pre>
  
  <p>Here I'm lost, Or if I'm completely wrong with my implementation please let me know</p>