Voting

: min(three, two)?
(Example: nine)

The Note You're Voting On

ravenswd at gmail dot com
10 years ago
Note that Example #1 contains a bug: ftruncate() does *not* re-set the file pointer to the beginning of the file. You need to execute a call to rewind() afterward. I realize that the ftruncate page does mention this, but if anybody copies the example above (as I did), their program will not work correctly unless they fix this.

<< Back to user notes page

To Top