[BUG] fopen(..., "a") does not seek to end of file until some write operation
Salvador Fandino
sfandino@yahoo.com
Fri Nov 13 20:41:00 GMT 2009
Hii
Using ftell() after fopen(..., "a") returns 0 even when the file open for appending is not empty. AFAIK, it should return the size of the file.
Compile and run the attached program several times to see it happening.
Cheers,
- Salva
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 17302 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20091113/e1f2c22d/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: seek.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20091113/e1f2c22d/attachment.c>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list