Mail Archives: djgpp/1995/11/02/02:04:19
On Wed, 1 Nov 1995, James Tsillas wrote:
> The fread() library routine seems to ignore the seconds argument
> (count), assuming it is always 1.
No, it doesn't. This is the first few lines from libsrc/c/io/fread.c:
fread(ptr, size, count, iop)
register void *ptr;
int size, count;
register FILE *iop;
{
register int s;
int c;
s = size * count;
while (s > 0) {
if (iop->_cnt < s) {
if (iop->_cnt > 0) {
bcopy(iop->_ptr, ptr, iop->_cnt);
ptr += iop->_cnt;
s -= iop->_cnt;
}
As you can see, it uses a multiple of `size' and `count', which is what
it's supposed to do. If you use a library from 1.12, then you should be OK.
> The virtual memory mapping of the VGA 64k aperature seems to not work
> under DPMI (Windows).
In DJGPP v1.12, graphics doesn't work in DPMI mode, this is clearly
stated in README.DOC and explained in the DJGPP FAQ list (faq102.zip from
the same place you get DJGPP).
- Raw text -