Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
fread/fwrite
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Richard Heathfield, post: 2963239"] ¬a\/b said: No, this isn't portable, because C doesn't guarantee size_t can store values as high as 0x2FFFF. The fact that you can write a non-portable program using size_t does not mean size_t is not portable. I mean that the program will achieve the same computational objective, regardless of the implementation used to translate it. To you, maybe, but not to me. Two levers can be of different lengths, yet both can provide leverage, and you can use either to shift a rock. Just as the concept of "leverage" is portable across levers, so the concept of object size is portable across implementations - and size_t is the type with which we measure object sizes. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
fread/fwrite
Top