Traversing stack and retrieving main arguments

Posted by dlee313 on Stack Overflow See other posts from Stack Overflow or by dlee313
Published on 2010-06-10T03:39:10Z Indexed on 2010/06/10 3:42 UTC
Read the original article Hit count: 127

Filed under:

Given the size of the code of the main function in bytes passed as a parameter to a function, what is the best way to get to the base address for the main code and retrieve the first char * in the argv array?

© Stack Overflow or respective owner

Related posts about c