home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18580 < prev    next >
Encoding:
Internet Message Format  |  1992-12-20  |  1.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!swrinde!emory!gwinnett!blackwlf!ericwebb
  2. From: ericwebb@blackwlf.gwinnett.com (eric webb)
  3. Newsgroups: comp.lang.c
  4. Subject: Peek/Poke in C
  5. Message-ID: <BV5XVB5w165w@blackwlf.gwinnett.com>
  6. Date: Thu, 17 Dec 92 16:43:34 EST
  7. Reply-To: ericwebb@blackwlf.gwinnett.com (eric webb)
  8. Organization: BlackWolf's Den (404)642-9933 v.32bis v.42bis 12/24/96/14.4
  9. Lines: 18
  10.  
  11. Hi again.. does anyone know how to do equivalent of BASIC's PEEK & POKE 
  12. statements in C?  My guess is that you need to use a far pointer to the 
  13. type of data (i.e., char, int, etc.), and then stuff the ptr with the seg 
  14. & offset.  How does one do this stuffing?  Does anyone know of any other 
  15. way to do it??  I need to go both ways, esp. POKE.
  16.  
  17. Tks..
  18.  
  19. Eric Webb
  20.  
  21. ericwebb@blackwlf.gwinnett.com
  22.  
  23.  
  24. ---------------------------------------------------------
  25.   From Eric Webb:  ericwebb@blackwlf.gwinnett.com
  26.      * Party Hard, Life's Short... *
  27.           Feel the shockwave? - TSR
  28. ---------------------------------------------------------
  29.