C: fopen
This bug is not entirely attributable to Lattice. Just to set the record
straight — Lattice has decided to do IO by calling the DOS IO functions. If
you look at file _main.c you will see that the iob structure gets the DOS
file-handle put into it. The same goes with seek. The fault lies in DOS, and
according to my information will be fixed in the next release.
Why not take the time to use the DOS file calls directly. Although the seek
bug still exists, maybe there is a workaround. I haven't heard of any, though.
AS I posted before, eliminate the calls to Lattice files Lstartup and lc.lib,
and you will reduce the size of your obj file.
WARNING: forget to menion, most of the standard io stuff is there, eg.
printf, but do not necessarily provide the full functionality. Anyway, this
is only a suggestion and it does work in many cases.
Randy Weiner <<cbm>>