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.
In reply to Re^3: Reading a huge input line in parts (Handles multi-digit numbers!)
by BrowserUk
in thread Reading a huge input line in parts
by kroach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |