[galib] benifit of argc and argv to main()  ?
    Essam Almasri 
    masryesam at yahoo.com
       
    Tue Dec 28 09:45:00 EST 2004
    
    
  
Dear Sir/ Madam
 
Does it make difference to define:
int main(argc, **argv) or int main().
 
what is the use of this part which I see in all examples:
 
for(int ii=1; ii<argc; ii++) {
    if(strcmp(argv[ii++],"seed") == 0) {
      seed = atoi(argv[ii]);
    }
  }
 
I have tried to run the examples without that parts and it works. Am I wrong.
 
 
Regards
 
 
		
---------------------------------
Do you Yahoo!?
 Dress up your holiday email, Hollywood style. Learn more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20041228/ae1a39a8/attachment.htm
    
    
More information about the galib
mailing list