Article View: comp.os.msdos.programmer
Article #7943Writing A Pointer To Memory
From: Nathan T. Wild
Date: Mon, 18 Mar 1996 13:46
Date: Mon, 18 Mar 1996 13:46
26 lines
1194 bytes
1194 bytes
I know this is s fairly stupid question, but I am having a remarkable amount of confusion over it... I have a far * to a structure. I need to share this with a device driver, by writing the pointer to a location in memory. the location in RAM that I have to write to is 2xsizeof(far *) or 8 bytes back from a specific location in memory. I know where I need to write the pointer, and what I need to write, but for some strange reason I cannot get it to do what I want... take: void far *ptr = far pointer to a structure; desiredDestinationPtr = (locationPtr - sizeof(void far *)); All I want to do is copy the 4 byte seg/offset pointer that ptr points to into physical memory... Aargh... It shouldn't be this difficult... Too much coffee... Please respond via email asap... Thanks
Technical Details
Message-ID:
<4ijpev$ev8@canopus.cc.umanitoba.ca>Path:
arc1-ca.pugleaf.net!access.mbnet.mb.ca!natewildShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!access.mbnet.mb.ca!natewild From: natewild@mbnet.mb.ca (Nathan T. Wild) Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Writing A Pointer To Memory Date: 18 Mar 1996 13:46:06 GMT Organization: The University of Manitoba Message-ID: <4ijpev$ev8@canopus.cc.umanitoba.ca> NNTP-Posting-Host: access.mbnet.mb.ca X-Newsreader: TIN [version 1.2 PL2]