On Sun Nov 20 14:38:07 2022 +0000, David Kahurani wrote:
With WriteRawChars() we have two constraints i) The string itself ii) The number of characters the user requested to write. When correctly used, the two constraints should both fail or, the length constraint should fail but the string constraint shouldn't fail before the length constraint because that would mean someone tried to write `'\0'` which is invalid and hence the check. On the other hand, we only have one constraint with WriteRaw()
I don't follow, why is this not the same situation as with write_escaped_string() with explicit length? Why do you have to check for (*pwch && cwch) and not just (cwch)?