Re: GCC: fclose() Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi g sobers,

> Would appreciate assistance with addressing the situation.

f is a dangling pointer.

f1 just happens to point to the recently closed buffer that f used to point
to.

I would not rely on that behavior.  Not only is it non-portable, it may not
work that way reliably even on the same platform.

It's a bug in the code.  Not in GCC, nor on Cygwin.

HTH,
--Eljay



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux