[fpc-pascal] fpwrite buffers issues

ik idokan at gmail.com
Sat Oct 13 00:01:22 CEST 2007


On 10/12/07, Vincent Snijders <vsnijders at quicknet.nl> wrote:
> ik schreef:
> > Hi Sorry for the delay in responding
> >
>
> Some remarks at first glance:
>         for m := 0 to readcount do
> Should be:
>         for m := 0 to readcount-1 do
>
> It would better to use either cshort or smallint.

Thanks that solve most of the problems. Back to learn the new issues
that I found :)

>
> I think fpread and fpwrite expect sizes in bytes and not in cshorts (or is a cshort
> 1 byte).

It's ssize_t and it's longint type...

>
> Vincent

Thank you for the help

Ido
-- 
http://ik.homelinux.org/



More information about the fpc-pascal mailing list