| delorie.com/archives/browse.cgi | search |
| From: | Jason <jasonn85 AT mindspring DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Another stupid question about "far" |
| Date: | Mon, 29 Mar 1999 17:52:47 -0500 |
| Organization: | MindSpring Enterprises |
| Lines: | 16 |
| Message-ID: | <3700043F.DE8E93CE@mindspring.com> |
| NNTP-Posting-Host: | a5.f7.45.7b |
| Mime-Version: | 1.0 |
| X-Server-Date: | 29 Mar 1999 22:51:30 GMT |
| X-Mailer: | Mozilla 4.02 [en] (Win95; I) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
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. Someone please tell me
another way to read the header into a struct because I am stumped.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |