It feels like your file may have been CRLF instead of just LF. strtok would eat an empty line if it was strictly delimited by the given delimiter. Removing empty tokens is part of its intentional behavior.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments