Memory Access

Horst Laumer hotte at sunrise.in-berlin.de
Mon Dec 17 05:31:23 AEST 1990


Peter_Warren_Lee at cup.portal.com writes:

>I'm just starting out learning C and I'm looking for some help. Are there
>some commands in C that work like PEEK and POKE in BASIC? I'd like to
>be able to see the values in a range of memory but I can't find the
>right commands to do it.
>Thanks,
>                              Pete
>  Peter_Warren_Lee at cup.portal.com

Just look at <memory.h>, and then provide the proper addresses.
Works great on MS-DOS, but you surely run into trouble when f.e.
trying to write to fixed adresses on a UNIX-System outside the
address-space of your program.

--HL

-- 
============================================================================
Horst Laumer, Kantstrasse 107, D-1000 Berlin 12 ! Bang-Adress: Junk-Food 
Domain: hotte at sunrise.in-berlin.de              ! for Autorouters -- me --
Bang:   ...unido!fub!geminix!sunrise.in-berlin.de!hotte



More information about the Comp.lang.c mailing list