Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Yet another Newbie Question

Yet another Newbie Question
Thread Tools
Professional Poster
Join Date: Jul 2001
Location: Dis
Status: Offline
Reply With Quote
Jul 30, 2001, 12:56 AM
 
I've seen these functions in the files ProjectBuilder makes, argc and argv. I've been looking around, and I can't seem to find out how they work. My C++ assumes knowlege, and my C book doesn't explain it. Any help or a link would be greatly appreciated.

BlackGriffen
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. -Galileo Galilei, physicist and astronomer (1564-1642)
     
Junior Member
Join Date: Feb 2001
Location: France, Issy les Moulineaux
Status: Offline
Reply With Quote
Jul 30, 2001, 04:56 AM
 
These are classical C/C++ programming.
int argc is the number of parameters passed to your executable
char *argv[] is a array for all parameters passed to your exec.

ie : toto -N TOTO
argc = 3
argv[0] = toto
argv[1] = -N
argv[2] = TOTO
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:47 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2