This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Fgets is not working on linux/gcc3.2.1
- From: "Ajay Bansal" <Ajay_Bansal at infosys dot com>
- To: "Bharathi S" <bharathi at lantana dot tenet dot res dot in>,"GNU GCC" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 10 Apr 2003 12:34:38 +0530
- Subject: RE: Fgets is not working on linux/gcc3.2.1
But then, would the behavior be different on Soalris/Linux!!!!!!!!!
-----Original Message-----
From: Bharathi S [mailto:bharathi at lantana dot tenet dot res dot in]
Sent: Thursday, April 10, 2003 12:15 PM
To: GNU GCC
On Thu, 10 Apr 2003, Ajay Bansal wrote:
> Following program is not working on linux. Ideally it should read all
> the lines from "/tmp/log.txt" and print them on to the screen.
> Instead it breals after it encounters fgets for the first time.
File is opened in Append mode. Bcoz of this file pointer may positioned
in the end of file.
Try it by opening in Read mode.
HTH :)
--
Bharathi S, IndLinuX Team, (__)
DON Lab, TeNeT Group, oo )
IIT-Madras, Chennai-INDIA. (_/\