This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.  (_/\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]