Help finding ARGC

Liam <[email protected]> Wed, 14 Nov 2007 21:01:12 -0800 (PST)
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Hi all,

I was reading about ARGC and that it holds how many
arguments were given on the command line when the
program was executed.

My question is, where is it on the stack?

If I do:

movl %esp, %ebp

at the beginning of the program, how can I get to the
ARGC value?




      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ