Mail Archives: djgpp/1998/05/02/16:40:10
Bruno Barberi Gnecco wrote:
> I'd like to output a file generated by TheDraw. It's documentation says to use:
>
> #include <stdio.h>
> #include <memory.h>
> #include "file.h" // this is the file containing data
> int main () {
> void far *screen;
> int offset = -162; t
> int x;
> for (x=0; x<IMAGEDATA_DEPTH; x++) {
> (long) screen = 0xB8000000+x*160+offset;
> memcpy (screen,&IMAGEDATA[x*IMAGEDATA_WIDTH*2],IMAGEDATA_WIDTH*2);
> }
> }
>
> But DJGPP doesn't accept the FAR keyword. How do I do?
>
You may define in file "file.h" first line like that:
#define far
--
๋ษาะม ๓.้. kirpa AT zfs DOT lg DOT ua
- Raw text -