title: Read a tab delimited csv file in C properly
body: <p>I have a CSV file tab-delimited that I am trying to read through C. fields are separated by tab but there are few null fields as well..
  I am using fscanf(fileptr,&quot;[^\t]s&quot;,field); to read a single field, the issue I am getting it did not help me to identify those fields that are null..
  i also tried this
  fscanf(fileptr,&quot;%s\t%s\t&quot;,field1,field2);
  but I am facing the same issues, even in the second method if I have a field separated with space,I didn't get it proper because %s will only read-string without white spaces.
  How to achieve that ?</p>