[ale] Arguments question

Fletch fletch at phydeaux.org
Wed May 2 14:39:00 EDT 2001


>>>>> "Chris" == Chris Fowler <ChrisF at computone.com> writes:


[...]

    Chris> if(strncmp(argv[0],"shell") == 0) 
    Chris> 	shell(argv);

[...]

    Chris> int shell(int argc, char *argv[]) { /*

[...]


    Chris> It seems simple, but my program that I am calling from main
    Chris> are not getting all the arguments.  Maybe I've overlooked
    Chris> something.


        Like that fact that you're only calling shell with one
argument rather than an argc and argv? :)


-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list