Results 1 to 2 of 2

Thread: Save Memory

  1. #1

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post 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

  2. #2
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width