Mail Archives: djgpp-workers/1999/10/21/17:30:50
> I was looking at fseek(), fgetpos(), fsetpos() earlier and I noticed
> that fsetpos() appears to ignore the return value of fseek(). Is
> this intended? If not, there's a patch below to fix it. I also
> altered the return value to be -1, to be consistent with fseek(). If
> this is the intended behaviour, may I ask why?
Linux says:
RETURN VALUES
The rewind function returns no value. Upon successful
completion, fgetpos, fseek, fsetpos return 0, and ftell returns
the current offset. Otherwise, -1 is returned and the global
variable errno is set to indicate the error.
IRIX says:
DIAGNOSTICS
If successful, both fsetpos and fgetpos return zero. On failure,
they return non-zero and set errno to indicate the error.
- Raw text -