Sunday, 15 March 2015

Re: [gccsdk] Unexpected results with fseek() and SEEK_CUR

In article <5505980F.7020503@gmx.com>,
Duncan Moore <duncan.moore@gmx.com> wrote:
> If the file qqq contains the single line:
> abcdefghijklmnopq

> then on Cygwin the following program gives what I would expect:
> abcdefghijklmnopq
> abcdefghi
> abcdEfghijklmnopq

I got the above result here on Iyonix with !GCC 4.1.2

> but on RISC OS gcc 4.7.4, VirtualRPC-Adjust RISCOS 4.39, ARM 710, the
> last output line is wrong:
> abcdefghijklmnopq
> abcdefghi
> abcdefghijklmEopq

> RISC OS seems to be using SEEK_END instead of SEEK_CUR.
> Is this a bug in RISC OS gcc, or is it something that just can't be done
> on RISC OS?

Seems to do what you require here on my Iyonix.

Ron M.


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment