Please help

This is a discussion on Please help within the C Programming forums, part of the General Programming Boards category; if im trying to kill a program, and im doing this by writing over memory address with a jumble of ...

  1. #1
    Unregistered
    Guest

    Please help

    if im trying to kill a program, and im doing this by writing over memory address with a jumble of charectors, how would i write to the memory address? or is there another way of doing it?

  2. #2
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    just type this code to terminate

    exit();

    if u have #include <stdlib.h>
    then use

    exit(0);

  3. #3
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    do this with asm code.

    _asm_(" code here ");
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  4. #4
    Unregistered
    Guest

    oh thank you!

    Thank you so, so much mr. Lynux-Punguin, you wouldn't believe how long i've been trying to figure out how to do that. people were always giving me the wrong syntax and i ended up actualy destroying the files and they sat there laughting said they were joking. But thank you for not thinking my Q was dumb.

    and everyone else out there (oh, thanks red_baron too, but i didn't use your example)
    "There is no such thing as a dumb question"

  5. #5
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    whats asm?

  6. #6
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Define a pointer and let the pointer point to the memory you want to write to. Then write your bytes to that memory address.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21