title: strtok not discarding the newline character
body: <p>so I have an input file with a bunch of names and numbers. I started using strtok to break up the string so that I can extract all the data out of each string. Everything seems to be working correctly, but for some reason it's not discarding the newline character.</p>
  
  <pre><code>int procFile(PERSON **data, FILE* fpFile)
  {
  //  Local Declaration
  char temp[1000];
  char proc[15];
  char *entry;
  char *loc;
  int success = 0;
  
  //  Statement
  if(fgets(temp, sizeof(temp), fpFile))
  {
      (*data) = aloMem(); // free
      entry = temp;
      loc = strtok(entry, " ()-");
      strcpy(proc, loc);
      loc = strtok(NULL, " ()-");
      strcat(proc, loc);
      loc = strtok(NULL, " ()-");
      strcat(proc, loc);
      sscanf(proc, "%ld", &amp;(*data)-&gt;phone);
      loc = strtok(NULL, "\0");
      strcpy((*data)-&gt;name, loc);
      success++;
      printf("%s1", (*data)-&gt;name);
  }
  
  return success;
  }// procFile
  </code></pre>
  
  <p>I tried printing the results to see if it's working correctly and this is my output.</p>
  
  <pre><code>Brown, Joanne
  1South, Frankie
  1Lee, Marie
  1Brown, Joanne
  1Trapp, Ada Eve
  1Trapp, David
  1White, D. Robert
  1Lee, Victoria
  1Marcus, Johnathan
  1Walljasper, Bryan
  1Trapp, Ada Eve
  1Brown, Joanne
  1Andrews, Daniel
  </code></pre>
  
  <p>It's printing the <code>1</code> after each name on a newline, rather than right after the name. Can someone explain to me how I can fix the problem?</p>