Mail Archives: djgpp/1998/08/12/19:15:25
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.
--
---------------------------------------------------------------------
| John M. Aldrich | A singer in a smoky room / Smell of |
| aka Fighteer I | wine and cheap perfume / For a smile |
| mailto:fighteer AT cs DOT net | they can share the night / It goes |
| http://www.cs.net/fighteer/| on and on and on... |
---------------------------------------------------------------------
- Raw text -