title: How to split a string and new line using strtok
body: <p>I am trying to split my string and the (\n)new line and want to get the new string without \n.My code is as below.Thanks.</p>
  
  <pre><code>token = strtok(NULL,"")  
  </code></pre>
  
  <p>The above snippet will store "some string and \n" where as I need just "some string".</p>
  
  <p>My data looks like this.</p>
  
  <pre><code>1,v1,p1,182,1665,unkn
  </code></pre>