in reply to Re^2: Reading a huge input line in parts (Handles multi-digit numbers!)
in thread Reading a huge input line in parts

Could this not be simplified?

And what happens when your buffer size splits a multi-digit number in two?

Ie. Run your code against this input:

123 456 789 1

And it produces: 123 456 78 9 1

And doesn't notice that the last number is supposed to be 0.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked