Hacker News new | ask | show | jobs
by anthay 3557 days ago
That's cool and I agree about the advantages you mention.

In your code \n must be a line separator rather than a line terminator. (Otherwise, if the last line is \n terminated, the function returns 0.)

1 comments

Yeah, fair point.