|
|
|
|
|
by Someone
45 days ago
|
|
Maybe, but that text says “as if” and even “If an error occurs, the resulting value of the file position indicator for the stream is indeterminate. If a partial element is read, its value is indeterminate.” so it doesn’t in any way require implementations to implement it by actually reading one byte at a time. That description also fits what I saw in the implementations I inspected, both of which simply try to read size × count bytes. |
|
[0] https://github.com/v7unix/v7unix/blob/master/v7/usr/src/libc...
[1] https://github.com/v7unix/v7unix/blob/master/v7/usr/include/...