Mail Archives: djgpp/1996/09/13/00:43:49
>
> Last question for a while, I promise. What is the C equiv. of the
> pascal pointer type? In pascal, it is a 32bit ptr, but I can't get DJGPP
> to do a int far *goober as is recommended for TurboC.
>
While questions are (generally) answered graciously, you might
consider borrowing or buying a book on learning C.
The keyward 'far' does not exist on 32 bit machines. It is a
hold-over from the 16 bit DOS/Windows days where we needed to break
out of the 64k (2^16) box. All pointers on 32 OS's for the x86
architecture are 32 bits. (Actually this is not entirely true, but
there is no reason to believe you are planning to write interrupt
handlers in your first go in C land.)
int* pi; /* This declares a pointer to an integer. */
Marc Singer
elf AT netcom DOT com
- Raw text -