|
-
Nov 29th, 2001, 07:35 PM
#1
Thread Starter
Fanatic Member
Save Memory
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

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Nov 30th, 2001, 09:49 AM
#2
Beats me what you want. Sounds like you have an address, and want to play with a string at that address.
if so
Code:
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|