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: Bharathi S <bharathi at lantana dot tenet dot res dot in>
- To: GNU GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 10 Apr 2003 19:21:29 +0530 (IST)
- Subject: RE: Fgets is not working on linux/gcc3.2.1
On Thu, 10 Apr 2003, Ajay Bansal wrote:
> If I open the file with "a+", the on Solaris file pointer is at the
> beginning of the file whereas on Linux it is at the end of the file.
> Why is this difference???
After opening the file, Just move the File pointer to the beginning of
file. [ Nasty temp solution ] :)
I think, fopen may failed to conform to some Stds like ANSI, IEEE,
POSIX ...
Thanks :)
--
Bharathi S, IndLinuX Team, (__)
DON Lab, TeNeT Group, oo )
IIT-Madras, Chennai-INDIA. (_/\