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

  1. Path: sparky!uunet!usc!srhqla!quest!kdq
  2. From: kdq@quest.UUCP (Kevin D. Quitt)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Peek/Poke in C
  5. Message-ID: <7kL1VB1w165w@quest.UUCP>
  6. Date: Fri, 18 Dec 92 21:39:54 PST
  7. References: <BzGIDn.Ho4@news.cso.uiuc.edu>
  8. Reply-To: srhqla!quest!kdq
  9. Organization: Job quest  (805) 251-8210,  So Cal: (800) 400-8210
  10. Lines: 19
  11.  
  12. cad28526@uxa.cso.uiuc.edu (Chuck Douglas) writes:
  13. > pal@regent.e-technik.tu-muenchen.dbp.de (Peter Loibl) writes:
  14. > >ericwebb@blackwlf.gwinnett.com (eric webb) writes:
  15. > >>Hi again.. does anyone know how to do equivalent of BASIC's PEEK & POKE
  16. > >>statements in C?
  17. > >I am sorry for my ignorance, but what are PEEK and POKE doing? If you
  18. > >describe their task, then this would be lots of help for all the
  19. > >"C-Gurus" here.
  20. > PEEK and POKE are used in Applesoft BASIC to look at (PEEK) the contents
  21. > of or put (POKE) a value in to a specific memory address.  I really
  22. > don't believe that there is anything analogous to it in C.  At least
  23. > nothing that would serve the use it does in Applesoft.
  24.  
  25.     What happened to pointers?  Did they go away?  (try *charptr =
  26. value for pokes and value = *charptr for peek).
  27.  
  28.  
  29.  _
  30. Kevin D. Quitt      96.37% of all statistics are made up.     srhqla!quest!kdq
  31.