Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.15 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. getting the starting address of stack [closed]
  2. long getesp() {  
  3. __asm__("movl %esp,%eax");  
  4. }  
  5.  
  6. void main() {  
  7. printf("%08Xn",getesp()+4);  
  8. }