Message98613
I wonder if this is technically a bug. The stream is not opened for reading and yet you do an fread. I quickly glanced through the
C-Standard and I did not find an _explicit_ paragraph that this is
undefined behavior, but personally I'd expect it to be.
Regarding the last C example. Also here, you do not open using "w+".
Now, even if you used "w+", by the standard you'd have to do an fflush,
fseek, fsetpos or rewind before reading. I don't see a libc bug. |
|
| Date |
User |
Action |
Args |
| 2010-01-31 13:17:40 | skrah | set | recipients:
+ skrah, pitrou, nneonneo, benjamin.peterson, pmpp |
| 2010-01-31 13:17:39 | skrah | set | messageid: <[email protected]> |
| 2010-01-31 13:17:37 | skrah | link | issue5677 messages |
| 2010-01-31 13:17:37 | skrah | create | |
|