|
|
||
|
| Hi, On Feb 21, 2014, at 9:06 , Tom N Harris wrote:
There is no corner case left. At EOF without EOL the string is 0 terminated. My last patch checks for if the stream reached EOF and removes the superfluous \0\n.
No, it works just fine with fgets. See my last proposed patch. All covered without much noticeable performance loss on the bible test case on an Intel Core.
Make it complex and error prone when it could just work?
And not heal AIDS, nor cancer? I would rather not have my arm hurt. -- ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin http://exactcode.com | http://exactscan.com | http://ocrkit.com | http://t2-project.org | http://rene.rebe.de |