3 ms·
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
by anthay 10y 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.)
- cousin_it 10y agoYeah, fair point.