[En-Nut-Discussion] fseek beyonf EOF on PHAT

Harald Kipp harald.kipp at egnite.de
Tue Jul 5 09:12:18 CEST 2011


Hi Ole,

On 7/4/2011 4:01 PM, Ole Reinhardt wrote:
> http://pubs.opengroup.org/onlinepubs/009695399/functions/fseek.html
> 
> says, that fseek should allow setting the file pointer beyond the end of
> file and should fill up the gap with 0 if write to the file follows.

Yes, this is not implemented. I vaguely remember it is documented
somewhere. If not, I'm sorry.

The reason was, that it looked quite complicated to me. I'd appreciate
it, if you'll try your luck.

In any case, it is a bug not to return an error.


Regards,

Harald



More information about the En-Nut-Discussion mailing list