This isn't the first time someone suggested adding the word "max", but it would be wrong to do so.
If someone were to complete "I attempted to read a max of 10,000 chars, but", I would expect to hear "I read 15,000." A failed attempt is a failure to match the "max" constraint (going over).
It would probably be useful for the docs to specify that falling short of the goal isn't considered an error. And that read will actually wait for the desired number of chars to arrive (absent eof or error). But it's incorrect to use "max" as you've used it.
In reply to Re^2: bin mode file copy
by ikegami
in thread bin mode file copy
by smanicka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |