Large arrays in MSDOS

Scott Linn scott at hpcvca.CV.HP.COM
Wed Oct 25 04:46:17 AEST 1989


Hello,

I've been having a problem trying to use an array greater than 64k on
an msdos machine.  What I have is the following:

char foo;
char FAR *bigbuf;
.
.
.
bigbug=farmalloc(125000L);

Then, I try to use bigbuf as a linear array:

bigbuf((long) some_pointer*some_num) = foo;

(I have compiled using the D model)

I am having problems with getting this to work, and I'm not sure if it's
something in my implementation, or my whole method is bogus.  Does
anyone out there know if this should work?

Thanks,

Scott Linn
hplabs!scott at hpcvcbh



More information about the Comp.lang.c mailing list