Mail Archives: djgpp/1998/08/13/04:16:06
John M. Aldrich wrote:
> Merlin wrote:
> >
> > When you declare a pointer....it doesn't use the 64k which is allocated for
> > variables... so you have to call malloc or calloc to give it a size.. example:
> > int *a_ptr = (int *)malloc(64000) //calloc(64000,1) can be used instead of malloc
> > ok...this would make an array-like pointer with 64000 spaces...
>
> Be careful, Merlin... the 64k barrier only exists in 16-bit, real-mode
> compilers; for DJGPP and other 32-bit compilers, the only practical
> limit is the amount of DPMI memory available.
>
oh..right...
sorry..too much turbo pascal for me lately :)
cya
Merlin.
- Raw text -