Re: main(int argc, char *argv[])
- From: Dan Henry <usenet@xxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 14:53:53 -0600
jmccloughlin@xxxxxxxxxxx (Sokar) wrote:
>I have my main function set up as
>
>int main(int argv, char *argv[])
>
>so taht i can read in a variable which is passed to the program on the
>command line. The problem is that main calls other functions and some
>of them need to start jump to the start of main.
^^^^
===SNIP===
>argv[1] is just used once as soon as main starts up and never used
>again after, so i dont mind if i loose the ability to read from it, i
>just need to be able to call main from another part of the program
^^^^
So which is it -- jump or call? If 'jump', there's setjmp/longjmp.
--
Dan Henry
.
- Follow-Ups:
- Re: main(int argc, char *argv[])
- From: Eric Sosman
- Re: main(int argc, char *argv[])
- References:
- main(int argc, char *argv[])
- From: Sokar
- main(int argc, char *argv[])
- Prev by Date: Re: main(int argc, char *argv[])
- Next by Date: Re: return a string
- Previous by thread: Re: main(int argc, char *argv[])
- Next by thread: Re: main(int argc, char *argv[])
- Index(es):
Relevant Pages
|