home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18659 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!montebello.ecom.unimelb.EDU.AU!carl
  3. From: carl@montebello.ecom.unimelb.EDU.AU (Carl Brewer)
  4. Subject: Re: Peek/Poke in C
  5. Message-ID: <9235412.13447@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Dept. Engineering Computer Resources, Melbourne Uni.
  8. References: <BV5XVB5w165w@blackwlf.gwinnett.com> <pal.724673747@regent.e-technik.tu-muenchen.de>
  9. Date: Sat, 19 Dec 1992 01:52:19 GMT
  10. Lines: 20
  11.  
  12. In article <pal.724673747@regent.e-technik.tu-muenchen.de> pal@regent.e-technik.tu-muenchen.dbp.de (Peter Loibl) writes:
  13. >ericwebb@blackwlf.gwinnett.com (eric webb) writes:
  14. >
  15. >>Hi again.. does anyone know how to do equivalent of BASIC's PEEK & POKE
  16. >>statements in C?
  17. >
  18. >I am sorry for my ignorance, but what are PEEK and POKE doing? If you
  19. >describe their task, then this would be lots of help for all the
  20. >"C-Gurus" here.
  21.  
  22. Peek used to be used to read direct memory addresses, and poke to
  23. put data into a direct memory address.  
  24.  
  25. it's not portable, and C does not support it  (as far as I know :) )
  26.  
  27. -- 
  28.  Annal  Natrach, Usthvah Spethed,         carl@ecr.mu.oz.au (IRC: Bleve)
  29.  Dochoel Dienve                           carl@munagin.ee.mu.oz.au
  30.                       carl@montebello.ecom.unimelb.EDU.AU
  31.  Merlin, where are you?  Call your dragon, to weave a mist...
  32.