www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/29/19:27:39

Sender: nate AT cartsys DOT com
Message-ID: <3700193D.55907480@cartsys.com>
Date: Mon, 29 Mar 1999 16:22:21 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Another stupid question about "far"
References: <3700043F DOT DE8E93CE AT mindspring DOT com>
Reply-To: djgpp AT delorie DOT com

Jason wrote:
> 
> I know that DJGPP doesn't support the keyword "far" and I know the DJ
> Delorie posted some sort of zip file that would allow this but I can't
> find it now that I need it :-(
> 
> I have a program that reads the header of a PCX file into a struct that
> has a serperate variable for every part of the header.  The only way I
> know how to read this would be to do something like this:
> 
> char far *temp = (char far *)image->header;
> 
> for (index=0; index<128; index++)
>   { temp[i] = getc(pcxfile); }
> 
> But I can't do that without far pointers.

Sure you can.  Just remove `far'.

> Someone please tell me
> another way to read the header into a struct because I am stumped.

Consider `fread'.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019