4 ms·
One more: if an error occurs while reading the first character, the function returns -out = 0, which violates the documented behavior that errors are negative,
by NobodyNada 3y ago
One more: if an error occurs while reading the first character, the function returns -out = 0, which violates the documented behavior that errors are negative, and means a caller can’t distinguish between a failing to read and reading an empty file.