public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Ajay Bansal" <Ajay_Bansal@infosys.com>
To: "Bharathi S" <bharathi@lantana.tenet.res.in>,
	"GNU GCC" <gcc-help@gcc.gnu.org>
Subject: RE: Fgets is not working on linux/gcc3.2.1
Date: Thu, 10 Apr 2003 07:03:00 -0000	[thread overview]
Message-ID: <2B721C6525F0D411B1E900B0D0226BDD027DCC88@mohmsg01.ad.infosys.com> (raw)

But then, would the behavior be different on Soalris/Linux!!!!!!!!! 


-----Original Message-----
From: Bharathi S [mailto:bharathi@lantana.tenet.res.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.  (_/\


             reply	other threads:[~2003-04-10  7:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-10  7:03 Ajay Bansal [this message]
2003-04-10  8:06 ` Bharathi S
  -- strict thread matches above, loose matches on Subject: below --
2003-04-10 12:34 Ajay Bansal
2003-04-10 13:52 ` Bharathi S
2003-04-10  6:30 Ajay Bansal
2003-04-10  6:45 ` Bharathi S
2003-04-10 12:26 ` John Love-Jensen
2003-04-10 14:45 ` LLeweLLyn Reese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2B721C6525F0D411B1E900B0D0226BDD027DCC88@mohmsg01.ad.infosys.com \
    --to=ajay_bansal@infosys.com \
    --cc=bharathi@lantana.tenet.res.in \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).