PDA

Click to See Complete Forum and Search --> : Save Memory


prog_tom
Nov 29th, 2001, 06:35 PM
Does anyone know how to edit a string in a specific address? What's the standard of a Memory Address, anyway? 209.28.222.23?
or is it like
238x83-D

Thx

jim mcnamara
Nov 30th, 2001, 08:49 AM
Beats me what you want. Sounds like you have an address, and want to play with a string at that address.

if so

int i;
chat tmp[128];
char *ptr;
long addr;
addr=0xffffa0; // fill in your address here
memset(tmp,0x0,sizeof(tmp));
for(i=0;i<sizeof(tmp)&&*ptr!='\0';i++){
tmpi[i]=*ptr++;
}


you now have a local copy (tmp) of the string at memory address 0xffffa0. You can now fold, spindle, & mutilate the local string.
(VERY old DP joke).

It's a start, anyway.