Mail Archives: djgpp/1994/05/27/13:30:22
> > for(i=length; i>0; i--)
> > read(handle, buffer[i], 2000);
> > close(handle);
> > }
> >
>
> Why this happens, I have no idea. Try changing the above to either
> "for( i=length-1; i>=0; i--)" or "read(handle, buffer[i-1], 2000);" and
> see if this corrects the problem.
This was a typo that resulted from being up too late. ;) The actual
code is read(handle, buffer[i-1], 2000) as it should be, so this is
not an array bounds problem. Thanks for the help though.
So is the panel stumped?
-Tom
--
===========================================================
Tom White white AT cs DOT uga DOT edu
===========================================================
- Raw text -