4 ms·
Why does your fread to anything other than multiplying the two arguments?
by chadgpt3 4mo ago
Why does your fread to anything other than multiplying the two arguments?
- Sesse__ 4mo agoThe idea of having two arguments to fread() is presumably to be able to do something else than all-or-nothing when there's a short read.
- chadgpt3 4mo agoYes, it divides the bytes read by the element size to get the return value. Which is the obvious reason you'd pass an element size of 1: you want to know how many bytes were read.